Make errors in form mutation non nullable (#1286)

This commit is contained in:
Semyon Pupkov 2022-09-23 13:47:10 +05:00 committed by GitHub
parent 5d81ba04f9
commit 0f40da7b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,7 +117,7 @@ class DjangoModelFormMutation(BaseDjangoFormMutation):
class Meta:
abstract = True
errors = graphene.List(ErrorType)
errors = graphene.List(graphene.NonNull(ErrorType), required=True)
@classmethod
def __init_subclass_with_meta__(