Changes between Initial Version and Version 1 of Ticket #22268, comment 3
- Timestamp:
- Mar 15, 2014, 12:22:34 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22268, comment 3
initial v1 1 1 One thing I want to clear out is that I think that {{{values}}} and {{{values_list}}} return dictionary/tuple type data for all objects present, hence this might not be a bug. 2 2 eg. 3 {{{ 4 Class.objects.values_list() 5 }}} 3 {{{ Class.objects.values_list() }}} 6 4 will give you something like 7 {{{ 8 [(1L, 1L, u'Software Engineering'), (2L, 1L, u'Computer Engineering')] 9 }}} 5 {{{ [(1L, 1L, u'Software Engineering'), (2L, 1L, u'Computer Engineering')] }}} 10 6 thus for 11 {{{ 12 Class.objects.values_list('students') 13 }}} 7 {{{ Class.objects.values_list('students') }}} 14 8 you are bound to get 15 {{{ 16 [(1L,), (None,)] 17 }}} 9 {{{ [(1L,), (None,)] }}} 18 10 19 11 Thoughts??