PEP8 x == True should be x is True
This commit is contained in:
parent
36993097b4
commit
5e65d27832
3 changed files with 3 additions and 3 deletions
|
|
@ -66,7 +66,7 @@ class QuerySet(object):
|
|||
|
||||
# If inheritance is allowed, only return instances and instances of
|
||||
# subclasses of the class being used
|
||||
if document._meta.get('allow_inheritance') == True:
|
||||
if document._meta.get('allow_inheritance') is True:
|
||||
self._initial_query = {"_cls": {"$in": self._document._subclasses}}
|
||||
self._loaded_fields = QueryFieldList(always_include=['_cls'])
|
||||
self._cursor_obj = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue