mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 09:37:07 +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,6 +100,7 @@ class SerializerMutation(ClientIDMutation):
|
||||||
convert_choices_to_enum=convert_choices_to_enum,
|
convert_choices_to_enum=convert_choices_to_enum,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not _meta:
|
||||||
_meta = SerializerMutationOptions(cls)
|
_meta = SerializerMutationOptions(cls)
|
||||||
_meta.lookup_field = lookup_field
|
_meta.lookup_field = lookup_field
|
||||||
_meta.model_operations = model_operations
|
_meta.model_operations = model_operations
|
||||||
|
|
Loading…
Reference in New Issue
Block a user