Ticket #1685: query.py.patch
File query.py.patch, 813 bytes (added by , 19 years ago) |
---|
-
C:/Dev/django_src_mr/django/db/models/query.py
427 427 else: 428 428 # Use the database table as a column prefix if it wasn't given, 429 429 # and if the requested column isn't a custom SELECT. 430 if "." not in col_name and col_name not in [k [0]for k in (self._select or ())]:430 if "." not in col_name and col_name not in [k for k in (self._select or ())]: 431 431 table_prefix = backend.quote_name(opts.db_table) + '.' 432 432 else: 433 433 table_prefix = ''