Changes between Initial Version and Version 3 of Ticket #12222
- Timestamp:
- Nov 16, 2009, 7:03:51 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12222
- Property Resolution → invalid
- Property Status new → closed
-
Ticket #12222 – Description
initial v3 1 1 I wish there were a way to do instead of this: 2 2 3 >>> MyModel.objects.values('otherfield__anotherjoinedfield__blah__derp__foo__doop') 3 {{{ 4 #!python 5 MyModel.objects.values('otherfield__anotherjoinedfield__blah__derp__foo__doop') 4 6 {'otherfield__anotherjoinedfield__blah__derp__foo__doop': 4, 'otherfield__anotherjoinedfield__blah__derp__foo__doop': 5, [...] 5 7 }}} 6 8 you could do this: 7 9 8 >>> MyModel.objects.values(val='otherfield__anotherjoinedfield__blah__derp__foo__doop') 10 {{{ 11 #!python MyModel.objects.values(val='otherfield__anotherjoinedfield__blah__derp__foo__doop') 9 12 {'val': 4, 'val': 5, [...] 13 }}}