Changes between Initial Version and Version 1 of Ticket #22268, comment 3


Ignore:
Timestamp:
Mar 15, 2014, 12:22:34 PM (10 years ago)
Author:
ANUBHAV JOSHI

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22268, comment 3

    initial v1  
    11One 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.
    22eg.
    3 {{{
    4 Class.objects.values_list()
    5 }}}
     3{{{ Class.objects.values_list() }}}
    64will 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')] }}}
    106thus for
    11 {{{
    12 Class.objects.values_list('students')
    13 }}}
     7{{{ Class.objects.values_list('students') }}}
    148you are bound to get
    15 {{{
    16 [(1L,), (None,)]
    17 }}}
     9{{{ [(1L,), (None,)] }}}
    1810
    1911Thoughts??
Back to Top