Added test, updated AUTHORS and changelog (#498)
This commit is contained in:
parent
7200a8cb84
commit
bcbbbe4046
3
AUTHORS
3
AUTHORS
@ -183,4 +183,5 @@ that much better:
|
|||||||
* Joe Friedl (https://github.com/grampajoe)
|
* Joe Friedl (https://github.com/grampajoe)
|
||||||
* Daniel Ward (https://github.com/danielward)
|
* Daniel Ward (https://github.com/danielward)
|
||||||
* Aniket Deshpande (https://github.com/anicake)
|
* Aniket Deshpande (https://github.com/anicake)
|
||||||
* rfkrocktk (https://github.com/rfkrocktk)
|
* rfkrocktk (https://github.com/rfkrocktk)
|
||||||
|
* Gustavo Andrés Angulo (https://github.com/woakas)
|
||||||
|
@ -4,6 +4,7 @@ Changelog
|
|||||||
|
|
||||||
Changes in 0.8.5
|
Changes in 0.8.5
|
||||||
================
|
================
|
||||||
|
- Fixed count and none bug (#498)
|
||||||
- Fixed bug with .only() and DictField with digit keys (#496)
|
- Fixed bug with .only() and DictField with digit keys (#496)
|
||||||
- Added user_permissions to Django User object (#491, #492)
|
- Added user_permissions to Django User object (#491, #492)
|
||||||
- Fix updating Geo Location fields (#488)
|
- Fix updating Geo Location fields (#488)
|
||||||
|
@ -2882,6 +2882,19 @@ class QuerySetTest(unittest.TestCase):
|
|||||||
|
|
||||||
self.assertEqual(10, Post.objects.limit(5).skip(5).count(with_limit_and_skip=False))
|
self.assertEqual(10, Post.objects.limit(5).skip(5).count(with_limit_and_skip=False))
|
||||||
|
|
||||||
|
def test_count_and_none(self):
|
||||||
|
"""Test count works with None()"""
|
||||||
|
|
||||||
|
class MyDoc(Document):
|
||||||
|
pass
|
||||||
|
|
||||||
|
MyDoc.drop_collection()
|
||||||
|
for i in xrange(0, 10):
|
||||||
|
MyDoc().save()
|
||||||
|
|
||||||
|
self.assertEqual(MyDoc.objects.count(), 10)
|
||||||
|
self.assertEqual(MyDoc.objects.none().count(), 0)
|
||||||
|
|
||||||
def test_call_after_limits_set(self):
|
def test_call_after_limits_set(self):
|
||||||
"""Ensure that re-filtering after slicing works
|
"""Ensure that re-filtering after slicing works
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user