Skip to content

Commit 0f40da7

Browse files
authored
Make errors in form mutation non nullable (#1286)
1 parent 5d81ba0 commit 0f40da7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/forms/mutation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class DjangoModelFormMutation(BaseDjangoFormMutation):
117117
class Meta:
118118
abstract = True
119119

120-
errors = graphene.List(ErrorType)
120+
errors = graphene.List(graphene.NonNull(ErrorType), required=True)
121121

122122
@classmethod
123123
def __init_subclass_with_meta__(

0 commit comments

Comments
 (0)