Ticket #18333: django-ticket18333.diff

File django-ticket18333.diff, 508 bytes (added by manfre, 3 years ago)
  • django/db/models/sql/aggregates.py

    diff --git a/django/db/models/sql/aggregates.py b/django/db/models/sql/aggregates.py
    index b41314a..f9d810a 100644
    a b class Aggregate(object): 
    7474        elif isinstance(self.col, (list, tuple)):
    7575            field_name = '.'.join([qn(c) for c in self.col])
    7676        else:
    77             field_name = self.col
     77            field_name = qn(self.col)
    7878
    7979        params = {
    8080            'function': self.sql_function,
Back to Top