Merge pull request #894 from MongoEngine/topic/not-in-style-issue

Code Cleanup
- Use not in instead of not (x in y)
This commit is contained in:
Matthew Ellison 2015-05-08 09:06:32 -04:00
commit 9f2b6d0ec6

View File

@ -609,7 +609,7 @@ class GenericEmbeddedDocumentField(BaseField):
return None
data = document.to_mongo(use_db_field)
if not '_cls' in data:
if '_cls' not in data:
data['_cls'] = document._class_name
return data