Skip to content

Commit 293a517

Browse files
authored
Update mutation.py
1 parent e51e602 commit 293a517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_django/forms/mutation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def mutate_and_get_payload(cls, root, info, **input):
4747
else:
4848
errors = ErrorType.from_errors(form.errors)
4949

50-
return cls(errors=errors)
50+
return cls(errors=errors, **form.data)
5151

5252
@classmethod
5353
def get_form(cls, root, info, **input):
@@ -122,7 +122,7 @@ def __init_subclass_with_meta__(
122122
@classmethod
123123
def perform_mutate(cls, form, info):
124124
form.save()
125-
return cls(errors=[])
125+
return cls(errors=[], **form.cleaned_data)
126126

127127

128128
class DjangoModelDjangoFormMutationOptions(DjangoFormMutationOptions):

0 commit comments

Comments
 (0)