mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Added support for django-filter < 2
This commit is contained in:
parent
a32d091625
commit
016321c405
|
@ -97,7 +97,7 @@ class DjangoFilterConnectionField(DjangoConnectionField):
|
|||
request=info.context,
|
||||
)
|
||||
|
||||
if not filterset.is_valid():
|
||||
if not (filterset.is_bound and filterset.form.is_valid()):
|
||||
exc = {
|
||||
key: [e.message for e in error_list]
|
||||
for key, error_list in filterset.errors.as_data().items()
|
||||
|
|
Loading…
Reference in New Issue
Block a user