mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-07 15:10: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 "
|
||||
'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 "
|
||||
|
|
Loading…
Reference in New Issue
Block a user