Django

Code

Show
Ignore:
Timestamp:
05/01/06 18:27:46 (3 years ago)
Author:
adrian
Message:

magic-removal: Fixed #1685 -- order_by no longer breaks when using a custom 'select'. Thanks, feiyu.xie

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/django/db/models/query.py

    r2754 r2803  
    428428                    # Use the database table as a column prefix if it wasn't given, 
    429429                    # 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 (self._select or ())
    431431                        table_prefix = backend.quote_name(opts.db_table) + '.' 
    432432                    else: