mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-25 19:14:11 +03:00
Allow passing of meta object in SerializerMutation options (#1028)
This commit is contained in:
parent
f5d94fda1f
commit
19e3eddddb
|
@ -66,6 +66,7 @@ class SerializerMutation(ClientIDMutation):
|
||||||
only_fields=(),
|
only_fields=(),
|
||||||
exclude_fields=(),
|
exclude_fields=(),
|
||||||
convert_choices_to_enum=True,
|
convert_choices_to_enum=True,
|
||||||
|
_meta=None,
|
||||||
**options
|
**options
|
||||||
):
|
):
|
||||||
|
|
||||||
|
@ -99,7 +100,8 @@ class SerializerMutation(ClientIDMutation):
|
||||||
convert_choices_to_enum=convert_choices_to_enum,
|
convert_choices_to_enum=convert_choices_to_enum,
|
||||||
)
|
)
|
||||||
|
|
||||||
_meta = SerializerMutationOptions(cls)
|
if not _meta:
|
||||||
|
_meta = SerializerMutationOptions(cls)
|
||||||
_meta.lookup_field = lookup_field
|
_meta.lookup_field = lookup_field
|
||||||
_meta.model_operations = model_operations
|
_meta.model_operations = model_operations
|
||||||
_meta.serializer_class = serializer_class
|
_meta.serializer_class = serializer_class
|
||||||
|
|
Loading…
Reference in New Issue
Block a user