From 5c3306e78d3c5599fad5a6c9f90b704bcd4655fa Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Mon, 26 Jun 2017 18:16:55 +0100 Subject: [PATCH] Return empty errors when successful --- graphene_django/rest_framework/mutation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphene_django/rest_framework/mutation.py b/graphene_django/rest_framework/mutation.py index c3c9836..7d74717 100644 --- a/graphene_django/rest_framework/mutation.py +++ b/graphene_django/rest_framework/mutation.py @@ -126,4 +126,4 @@ class SerializerMutation(six.with_metaclass(SerializerMutationMeta, Mutation)): def perform_mutate(cls, serializer, info): obj = serializer.save() - return cls(**obj) \ No newline at end of file + return cls(errors=[], **obj) \ No newline at end of file