cleanup + nicer EmbeddedDocumentList.__match_all and __only_matches

This commit is contained in:
Stefan Wojcik
2016-12-08 18:59:25 -05:00
parent 9a32ff4c42
commit f1f999a570
3 changed files with 14 additions and 12 deletions

View File

@@ -433,7 +433,7 @@ class Document(BaseDocument):
"""Recursively save any references and generic references on the
document.
"""
_refs = kwargs.get('_refs', []) or []
_refs = kwargs.get('_refs') or []
ReferenceField = _import_class('ReferenceField')
GenericReferenceField = _import_class('GenericReferenceField')