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
016321c405
commit
edc5c880d1
|
@ -100,7 +100,7 @@ class DjangoFilterConnectionField(DjangoConnectionField):
|
|||
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()
|
||||
for key, error_list in filterset.form.errors.as_data().items()
|
||||
}
|
||||
|
||||
raise GraphQLError(exc)
|
||||
|
|
Loading…
Reference in New Issue
Block a user