Skip to content

Commit

Permalink
Merge pull request #894 from MongoEngine/topic/not-in-style-issue
Browse files Browse the repository at this point in the history
Code Cleanup
- Use not in instead of not (x in y)
  • Loading branch information
mmellison committed May 8, 2015
2 parents a443144 + 7d7d0ea commit 9f2b6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongoengine/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ def to_mongo(self, document, use_db_field=True):
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

Expand Down

0 comments on commit 9f2b6d0

Please sign in to comment.