summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-12 11:01:57 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-07-12 11:01:57 +0000
commit52d985fac370f22883c5bcf63e405aeadc6d1b6c (patch)
tree88f69a8385a4eb18f74222e345ea6ddbcae589eb /django
parent4aa6c5725137dc47e3baf4d9df94352e529fa3f4 (diff)
Fixed a bozo bug from [7885]. Fixed #7698.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r--django/db/models/sql/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index cf7c27d9a4..f682c71d07 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -286,7 +286,7 @@ class Query(object):
if with_limits:
if self.high_mark is not None:
result.append('LIMIT %d' % (self.high_mark - self.low_mark))
- if self.low_mark is not None:
+ if self.low_mark:
if self.high_mark is None:
val = self.connection.ops.no_limit_value()
if val: