From 52d985fac370f22883c5bcf63e405aeadc6d1b6c Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 12 Jul 2008 11:01:57 +0000 Subject: [PATCH] Fixed a bozo bug from [7885]. Fixed #7698. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7901 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/sql/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: