Changes between Initial Version and Version 1 of Ticket #10766
- Timestamp:
- Apr 8, 2009, 8:39:42 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10766 – Description
initial v1 1 1 I recently wrote the following code: 2 2 {{{ 3 3 classes = classes.annotate(num_students=Count('anchor__child_set__userbit_qsc')) 4 4 classes = classes.annotate(total_max_student=Sum('sections__num_students')) 5 5 }}} 6 6 The second line above (correctly) generated an error for me because the model referenced by "sections" doesn't contain a field named "num_students". 7 7