I am selecting the following in a queryset
.values
('id','who__name','who__name_slug','when__from_time','when__to_time')
but the field names are a bit clunky. Is there a way of doing the
equivalent of
.values
('id','who__name','who__name_slug','when__from_time','when__to_time')
.as('id','name','name_slug','start','finish')
or
.values('id',('who__name':'name'),
('who__name_slug':'name_slug'),('when__from_time':'start'),
('when__to_time':'finish'))
or just renaming after the event?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---