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:
commit
9f2b6d0ec6
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user