Skip to content

Commit 000ef6c

Browse files
committed
Fix result from mutation
1 parent 7888fa7 commit 000ef6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graphene_django/rest_framework/mutation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,6 @@ def mutate(cls, instance, args, request, info):
124124

125125
@classmethod
126126
def perform_mutate(cls, serializer, info):
127-
return serializer.save()
127+
obj = serializer.save()
128+
129+
return cls(**obj)

0 commit comments

Comments
 (0)