mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Merge 51d47d8f2e
into d2c1e7c87b
This commit is contained in:
commit
cdc2f5b836
|
@ -69,7 +69,7 @@ class SerializerMutation(ClientIDMutation):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def mutate_and_get_payload(cls, root, info, **input):
|
def mutate_and_get_payload(cls, root, info, **input):
|
||||||
serializer = cls._meta.serializer_class(data=input)
|
serializer = cls._meta.serializer_class(data=input, context={'request': info.context})
|
||||||
|
|
||||||
if serializer.is_valid():
|
if serializer.is_valid():
|
||||||
return cls.perform_mutate(serializer, info)
|
return cls.perform_mutate(serializer, info)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user