diff options
Diffstat (limited to 'sugar_network/db/routes.py')
-rw-r--r-- | sugar_network/db/routes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sugar_network/db/routes.py b/sugar_network/db/routes.py index 197c215..7a4b582 100644 --- a/sugar_network/db/routes.py +++ b/sugar_network/db/routes.py @@ -201,7 +201,7 @@ class Routes(object): if access == ACL.CREATE: for name, prop in directory.metadata.items(): if not isinstance(prop, BlobProperty) and \ - name not in content and \ + content.get(name) is None and \ (prop.default is not None or prop.on_set is not None): doc[name] = prop.default |