mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-12 09:30:35 +03:00
Fixed flake8 lint error
This commit is contained in:
parent
5c191b9062
commit
4d905a46ac
|
@ -76,10 +76,10 @@ class DjangoObjectType(ObjectType):
|
||||||
"The attribute registry in {} needs to be an instance of "
|
"The attribute registry in {} needs to be an instance of "
|
||||||
'Registry, received "{}".'
|
'Registry, received "{}".'
|
||||||
).format(cls.__name__, registry)
|
).format(cls.__name__, registry)
|
||||||
|
|
||||||
if filter_fields and filterset_class:
|
if filter_fields and filterset_class:
|
||||||
raise Exception("Can't set both 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):
|
if not DJANGO_FILTER_INSTALLED and (filter_fields or filterset_class):
|
||||||
raise Exception((
|
raise Exception((
|
||||||
"Can only set filter_fields or filterset_class if "
|
"Can only set filter_fields or filterset_class if "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user