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


Ignore:
Timestamp:
Mar 19, 2014, 5:33:27 AM (11 years ago)
Author:
Kal Sze

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22268, comment 15

    v3 v4  
    2727[{'students': 1, 'name': u'Software Engineering'}, {'students': None, 'name': u'Computer Engineering'}, {'students': 1, 'name': u'Discrete Mathematics'}, {'students': 2, 'name': u'Discrete Mathematics'}]
    2828}}}
    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:
     29That'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:'''
    3032{{{
    3133[
     
    4850[(u'Software Engineering', 1), (u'Computer Engineering', None), (u'Discrete Mathematics', 1), (u'Discrete Mathematics', 2)]
    4951}}}
    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:'''
    5154{{{
    5255[
Back to Top