mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-02-25 08:03:06 +03:00
Return empty errors when successful
This commit is contained in:
parent
000ef6c42e
commit
5c3306e78d
|
@ -126,4 +126,4 @@ class SerializerMutation(six.with_metaclass(SerializerMutationMeta, Mutation)):
|
|||
def perform_mutate(cls, serializer, info):
|
||||
obj = serializer.save()
|
||||
|
||||
return cls(**obj)
|
||||
return cls(errors=[], **obj)
|
Loading…
Reference in New Issue
Block a user