Skip to content

Commit bd8c71d

Browse files
committed
Hardcoded with_limit_and_skip=True in count()
version updated to 0.4.0.bigml-2
1 parent 86cdc56 commit bd8c71d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

django_mongodb_engine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python
22
# -*- coding: utf-8 -*-
33

4-
__version__ = (0, 4, 0, 'bigml-1')
4+
__version__ = (0, 4, 0, 'bigml-2')
55
__author__ = "Flavio Percoco Premoli, Alberto Paro, " + \
66
"Jonas Haag and contributors"
77
__contact__ = "django-non-relational@googlegroups.com"

django_mongodb_engine/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def count(self, limit=None, with_limit_and_skip=False):
8686
results = self._get_results()
8787
if limit is not None:
8888
results.limit(limit)
89-
return results.count(with_limit_and_skip=with_limit_and_skip)
89+
return results.count(with_limit_and_skip=True)
9090

9191
@safe_call
9292
def order_by(self, ordering):

0 commit comments

Comments
 (0)