Changes between Initial Version and Version 1 of Ticket #10766


Ignore:
Timestamp:
Apr 8, 2009, 8:39:42 PM (16 years ago)
Author:
Alex Gaynor
Comment:

Please use preview :)

Legend:

Unmodified
Added
Removed
Modified
  • 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
Back to Top