Changes between Version 2 and Version 3 of Ticket #22268, comment 15
- Timestamp:
- Mar 19, 2014, 5:08:55 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22268, comment 15
v2 v3 22 22 That's 3 dictionaries because we now have 3 Class objects. That seems fine. On the other hand, why don't students appear here? 23 23 24 So, let's specifically ask the queryto include `students`:24 So, let's specifically ask `values()` to include `students`: 25 25 {{{ 26 26 >>> Class.objects.values('name', 'students') … … 43 43 3 tuples. Again, this seems fine except for the fact that students aren't included. 44 44 45 So, let's specifically ask `values_list()` to include `students`: 45 46 {{{ 46 47 >>> Class.objects.values_list('name', 'students')