Changes between Version 3 and Version 4 of Ticket #22268, comment 15
 Timestamp:
 03/19/2014 05:33:27 AM (3 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #22268, comment 15
v3 v4 27 27 [{'students': 1, 'name': u'Software Engineering'}, {'students': None, 'name': u'Computer Engineering'}, {'students': 1, 'name': u'Discrete Mathematics'}, {'students': 2, 'name': u'Discrete Mathematics'}] 28 28 }}} 29 That's 4 dictionaries even though we only have 3 Class objects (soen, coen, and discrete_math). Can you imagine what would happen if the Class object had more M2M fields? The number of dictionaries returned would probably explode exponentially! Why aren't the students combined into a tuple or a list? Shouldn't it be 3 dictionaries like this: 29 That's 4 dictionaries even though we only have 3 Class objects (soen, coen, and discrete_math). Can you imagine what would happen if the Class object had more M2M fields? The number of dictionaries returned would probably explode exponentially! 30 31 '''Why aren't the students combined into a tuple or a list? I would expect the results to be a list of 3 dictionaries like this:''' 30 32 {{{ 31 33 [ … … 48 50 [(u'Software Engineering', 1), (u'Computer Engineering', None), (u'Discrete Mathematics', 1), (u'Discrete Mathematics', 2)] 49 51 }}} 50 4 tuples even though we have 3 Class objects only! Shouldn't this be 3 tuples like this: 52 53 '''4 tuples even though we have 3 Class objects only. I would expect the results to be a list of 3 tuples like this:''' 51 54 {{{ 52 55 [