Changes between Initial Version and Version 2 of Ticket #19512
- Timestamp:
- Dec 31, 2012, 1:53:52 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19512
- Property Triage Stage Unreviewed → Design decision needed
- Property Type Uncategorized → New feature
-
Ticket #19512 – Description
initial v2 1 {{{ 1 2 from django.db.models import Count, Sum, F 2 3 … … 5 6 .annotate(total=F('a_count')+F('b_count')) \ 6 7 .order_by('total') 8 }}} 7 9 8 This query is going to raise '''AttributeError: 'ExpressionNode' object has no attribute 'split''''10 This query is going to raise `AttributeError: 'ExpressionNode' object has no attribute 'split'` 9 11 10 12 I don't find any method in django ORM to support such kind of operations (in which two fields are involved).