Merge branch 'master' of http://github.com/cyberdelia/mongoengine into v0.4
This commit is contained in:
@@ -448,6 +448,9 @@ class QuerySet(object):
|
||||
for field_name in parts:
|
||||
if field is None:
|
||||
# Look up first field from the document
|
||||
if field_name == 'pk':
|
||||
# Deal with "primary key" alias
|
||||
field_name = document._meta['id_field']
|
||||
field = document._fields[field_name]
|
||||
else:
|
||||
# Look up subfield on the previous field
|
||||
|
||||
Reference in New Issue
Block a user