apply black formatter

This commit is contained in:
B4rtware 2020-01-08 23:31:47 +01:00 committed by GitHub
parent 59da509bfb
commit adc22b559c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)