From b2825119cee0c825da434216fa76ab32f877a3f5 Mon Sep 17 00:00:00 2001 From: Stefan Wojcik Date: Thu, 8 Dec 2016 15:36:54 -0500 Subject: [PATCH] remove unnecessary parentheses --- mongoengine/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoengine/document.py b/mongoengine/document.py index 929b1b85..7ddf6b37 100644 --- a/mongoengine/document.py +++ b/mongoengine/document.py @@ -882,7 +882,7 @@ class Document(BaseDocument): # finish up by appending { '_id': 1 } and { '_cls': 1 }, if needed if [(u'_id', 1)] not in indexes: indexes.append([(u'_id', 1)]) - if (cls._meta.get('index_cls', True) and cls._meta.get('allow_inheritance')): + if cls._meta.get('index_cls', True) and cls._meta.get('allow_inheritance'): indexes.append([(u'_cls', 1)]) return indexes