Fixed whitespace

This commit is contained in:
Alistair Roche 2011-05-24 11:44:43 +01:00
parent fe5111743d
commit 305fd4b232
2 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,7 @@ class DocumentMetaclass(type):
attrs['_class_name'] = '.'.join(reversed(class_name))
attrs['_superclasses'] = superclasses
# Add the document's fields to the _fields attribute
for attr_name, attr_value in attrs.items():
if hasattr(attr_value, "__class__") and \

View File

@ -628,6 +628,7 @@ class QuerySet(object):
mongo_query[key] = value
elif key in mongo_query and isinstance(mongo_query[key], dict):
mongo_query[key].update(value)
return mongo_query
def get(self, *q_objs, **query):
@ -1055,6 +1056,7 @@ class QuerySet(object):
"""
operators = ['set', 'unset', 'inc', 'dec', 'pop', 'push', 'push_all',
'pull', 'pull_all', 'add_to_set']
mongo_update = {}
for key, value in update.items():
parts = key.split('__')