Make errors in form mutation non nullable

This commit is contained in:
Semyon Pupkov 2021-12-17 15:59:28 +05:00
parent 608af578d4
commit a0a91f2615

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__(