From 4d905a46ac39a2f494f94ab177c84ba7c0c859cc Mon Sep 17 00:00:00 2001 From: sierreis <48896364+sierreis@users.noreply.github.com> Date: Mon, 25 Mar 2019 10:03:54 -0400 Subject: [PATCH] Fixed flake8 lint error --- graphene_django/types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene_django/types.py b/graphene_django/types.py index ef72b9b..b33c6bf 100644 --- a/graphene_django/types.py +++ b/graphene_django/types.py @@ -76,10 +76,10 @@ class DjangoObjectType(ObjectType): "The attribute registry in {} needs to be an instance of " 'Registry, received "{}".' ).format(cls.__name__, registry) - + if filter_fields and filterset_class: raise Exception("Can't set both filter_fields and filterset_class") - + if not DJANGO_FILTER_INSTALLED and (filter_fields or filterset_class): raise Exception(( "Can only set filter_fields or filterset_class if "