Ticket #14476: patch
File patch, 580 bytes (added by , 14 years ago) |
---|
-
django/db/models/sql/query.py
1008 1008 having_clause = value.contains_aggregate 1009 1009 1010 1010 for alias, aggregate in self.aggregates.items(): 1011 if alias == parts[0]:1011 if alias in (parts[0], LOOKUP_SEP.join(parts)): 1012 1012 entry = self.where_class() 1013 1013 entry.add((aggregate, lookup_type, value), AND) 1014 1014 if negate: