mongoengine/tests
Zak Johnson 3d15a3b3e2 Add GridFSProxy.__nonzero__
For documents that do not have a value set for a given field, most field types
return None (or [] in the case of ListField). This makes it easy to test
whether a field has been set using "if doc.field". FileFields, on the other
hand, always return a GridFSProxy. Adding GridFSProxy.__nonzero__ which simply
checks for a grid_id allows the same boolean-test pattern for FileFields, as
well.
2011-06-29 20:48:39 -07:00
..
__init__.py Added changelog to docs, updated manifest 2010-01-04 16:10:42 +00:00
dereference.py Added delta tracking to documents. 2011-06-14 14:35:38 +01:00
django_tests.py Fixes for django Q query rendering bug 2011-06-16 15:00:10 +01:00
document.py Changed default collection naming 2011-06-20 14:00:06 +01:00
fields.py Add GridFSProxy.__nonzero__ 2011-06-29 20:48:39 -07:00
fixtures.py Added document mixin support 2011-06-20 09:44:53 +01:00
queryset.py Added support for the $ positional operator 2011-06-21 14:50:11 +01:00
signals.py Fixes to signals 2011-06-14 16:56:04 +01:00