Ticket #2496: query.py.patch
File query.py.patch, 619 bytes (added by , 18 years ago) |
---|
-
django/db/models/query.py
448 448 449 449 # Add additional tables and WHERE clauses based on select_related. 450 450 if self._select_related: 451 fill_table_cache(opts, select, tables, where, opts.db_table, [opts.db_table] )451 fill_table_cache(opts, select, tables, where, opts.db_table, [opts.db_table]+[table.replace('"','') for table in tables]) 452 452 453 453 # Add any additional SELECTs. 454 454 if self._select: