Fixed False BooleanField marked as unset by _delta()

Closes #282
This commit is contained in:
Ross Lawley
2011-12-02 06:03:15 -08:00
parent ba59e498de
commit 6419a8d09a
3 changed files with 15 additions and 1 deletions

View File

@@ -978,7 +978,7 @@ class BaseDocument(object):
# Determine if any changed items were actually unset.
for path, value in set_data.items():
if value:
if value or isinstance(value, bool):
continue
# If we've set a value that ain't the default value dont unset it.