Ticket #2496: query.py.patch

File query.py.patch, 619 bytes (added by rezzrovv, 9 years ago)

patch for query error

  • django/db/models/query.py

     
    448448
    449449        # Add additional tables and WHERE clauses based on select_related.
    450450        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])
    452452
    453453        # Add any additional SELECTs.
    454454        if self._select:
Back to Top