mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-14 02:02:20 +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,
|
request=info.context,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not filterset.is_valid():
|
if not (filterset.is_bound and filterset.form.is_valid()):
|
||||||
exc = {
|
exc = {
|
||||||
key: [e.message for e in error_list]
|
key: [e.message for e in error_list]
|
||||||
for key, error_list in filterset.errors.as_data().items()
|
for key, error_list in filterset.errors.as_data().items()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user