diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-05-01 23:27:46 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-05-01 23:27:46 +0000 |
| commit | 6ed8497f41f2919d4a62efe9b01c9dc034634090 (patch) | |
| tree | a89e476ccbf4222dc360022fc30f07ebe8ec041c | |
| parent | c0f399395214f08141f319c5b5f0330c50d2c995 (diff) | |
magic-removal: Fixed #1685 -- order_by no longer breaks when using a custom 'select'. Thanks, feiyu.xie
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/models/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index edc16e6fc1..365ead2a3a 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -427,7 +427,7 @@ class QuerySet(object): else: # Use the database table as a column prefix if it wasn't given, # and if the requested column isn't a custom SELECT. - if "." not in col_name and col_name not in [k[0] for k in (self._select or ())]: + if "." not in col_name and col_name not in (self._select or ()): table_prefix = backend.quote_name(opts.db_table) + '.' else: table_prefix = '' |
