Ticket #14476: patch

File patch, 580 bytes (added by dirleyrls, 14 years ago)
  • django/db/models/sql/query.py

     
    10081008            having_clause = value.contains_aggregate
    10091009
    10101010        for alias, aggregate in self.aggregates.items():
    1011             if alias == parts[0]:
     1011            if alias in (parts[0], LOOKUP_SEP.join(parts)):
    10121012                entry = self.where_class()
    10131013                entry.add((aggregate, lookup_type, value), AND)
    10141014                if negate:
Back to Top