From adc22b559c710ce4a9594e0003df01c34b0728fa Mon Sep 17 00:00:00 2001 From: B4rtware <34386047+B4rtware@users.noreply.github.com> Date: Wed, 8 Jan 2020 23:31:47 +0100 Subject: [PATCH] apply black formatter --- graphene_django/rest_framework/mutation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphene_django/rest_framework/mutation.py b/graphene_django/rest_framework/mutation.py index 8985dfe..c3d0c9e 100644 --- a/graphene_django/rest_framework/mutation.py +++ b/graphene_django/rest_framework/mutation.py @@ -138,7 +138,7 @@ class SerializerMutation(ClientIDMutation): @classmethod def perform_mutate(cls, serializer, info): obj = serializer.save() - + kwargs = {} for f, field in serializer.fields.items(): if not field.write_only: @@ -146,5 +146,5 @@ class SerializerMutation(ClientIDMutation): kwargs[f] = field.to_representation(obj) else: kwargs[f] = field.get_attribute(obj) - + return cls(errors=None, **kwargs)