diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2008-09-01 12:07:26 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2008-09-01 12:07:26 +0000 |
| commit | f55b834c2f49a2e07e38a5c8ec7e88a8237ab98e (patch) | |
| tree | 9a0d30e8fb736613ad4077c497d9a4cc8c49fb58 /django/db/models/sql/query.py | |
| parent | 823263429ff63701c843aa35edfff1cc7ede3910 (diff) | |
Fixed #7302: Corrected quoting of columns in extra_group_by. Thanks to Ivan Sagalaev for the patch and initial test.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8794 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/sql/query.py')
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 2e3169a3c0..9e67e9a993 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -629,7 +629,7 @@ class Query(object): result.append('%s %s' % (elt, order)) else: col, order = get_order_dir(field, asc) - elt = qn(col) + elt = qn2(col) if distinct and elt not in select_aliases: ordering_aliases.append(elt) result.append('%s %s' % (elt, order)) |
