Ticket #18333: django-ticket18333.2.diff

File django-ticket18333.2.diff, 951 bytes (added by Michael Manfre, 13 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,
  • django/db/models/sql/compiler.py

    diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py
    index 3cd26d3..54e004f 100644
    a b class SQLCompiler(object):  
    1616        self.query = query
    1717        self.connection = connection
    1818        self.using = using
    19         self.quote_cache = {}
     19        self.quote_cache = {'*': '*'}
    2020
    2121    def pre_sql_setup(self):
    2222        """
Back to Top