PEP8 x == True should be x is True

This commit is contained in:
Ross Lawley
2013-04-26 11:46:12 +00:00
parent 36993097b4
commit 5e65d27832
3 changed files with 3 additions and 3 deletions

View File

@@ -295,7 +295,7 @@ class ComplexBaseField(BaseField):
meta = getattr(v, '_meta', {})
allow_inheritance = (
meta.get('allow_inheritance', ALLOW_INHERITANCE)
== True)
is True)
if not allow_inheritance and not self.field:
value_dict[k] = GenericReferenceField().to_mongo(v)
else: