Changes between Version 2 and Version 3 of Ticket #22268, comment 15


Ignore:
Timestamp:
03/19/2014 05:08:55 AM (6 years ago)
Author:
Kal Sze
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22268, comment 15

    v2 v3  
    2222That's 3 dictionaries because we now have 3 Class objects. That seems fine. On the other hand, why don't students appear here?
    2323
    24 So, let's specifically ask the query to include `students`:
     24So, let's specifically ask `values()` to include `students`:
    2525{{{
    2626>>> Class.objects.values('name', 'students')
     
    43433 tuples. Again, this seems fine except for the fact that students aren't included.
    4444
     45So, let's specifically ask `values_list()` to include `students`:
    4546{{{
    4647>>> Class.objects.values_list('name', 'students')
Back to Top