summaryrefslogtreecommitdiff
path: root/django/db/models/sql
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2009-05-29 04:39:59 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2009-05-29 04:39:59 +0000
commit0871c87b77f8e43bf3a8fd2d10b74f8a11ddfef9 (patch)
tree715541a72330629d3874c307d5d5c25c2e7b0d05 /django/db/models/sql
parente2e092cff978603211a38a0df67d50d89e957c56 (diff)
[1.0.X] Fixed #11216 and #11218 -- Corrected a few typos, thanks buriy.
Backport of [10861] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/models/sql')
-rw-r--r--django/db/models/sql/query.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index a25ed52564..8d7715b607 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -425,7 +425,7 @@ class BaseQuery(object):
If 'with_aliases' is true, any column names that are duplicated
(without the table names) are given unique aliases. This is needed in
- some cases to avoid ambiguitity with nested queries.
+ some cases to avoid ambiguity with nested queries.
"""
qn = self.quote_name_unless_alias
qn2 = self.connection.ops.quote_name
@@ -1823,7 +1823,7 @@ class BaseQuery(object):
return cursor
if result_type == SINGLE:
if self.ordering_aliases:
- return cursor.fetchone()[:-len(results.ordering_aliases)]
+ return cursor.fetchone()[:-len(self.ordering_aliases)]
return cursor.fetchone()
# The MULTI case.