Code

Changes between Initial Version and Version 1 of Ticket #10766


Ignore:
Timestamp:
04/08/09 18:39:42 (5 years ago)
Author:
Alex
Comment:

Please use preview :)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10766

    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
  • Ticket #10766 – Description

    initial v1  
    11I recently wrote the following code: 
    2  
     2{{{ 
    33classes = classes.annotate(num_students=Count('anchor__child_set__userbit_qsc')) 
    44classes = classes.annotate(total_max_student=Sum('sections__num_students')) 
    5  
     5}}} 
    66The second line above (correctly) generated an error for me because the model referenced by "sections" doesn't contain a field named "num_students". 
    77