Code

Ticket #9049: dont_quote_extra_tables.patch

File dont_quote_extra_tables.patch, 599 bytes (added by tobias, 6 years ago)
  • db/models/sql/query.py

    diff -ruN django.orig/db/models/sql/query.py django/db/models/sql/query.py
    old new  
    554554            # this is the only reference. 
    555555            if alias not in self.alias_map or self.alias_refcount[alias] == 1: 
    556556                connector = not first and ', ' or '' 
    557                 result.append('%s%s' % (connector, qn(alias))) 
     557                result.append('%s%s' % (connector, alias)) 
    558558                first = False 
    559559        return result, []