mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 01:27:01 +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=(),
|
||||
exclude_fields=(),
|
||||
convert_choices_to_enum=True,
|
||||
_meta=None,
|
||||
**options
|
||||
):
|
||||
|
||||
|
@ -99,7 +100,8 @@ class SerializerMutation(ClientIDMutation):
|
|||
convert_choices_to_enum=convert_choices_to_enum,
|
||||
)
|
||||
|
||||
_meta = SerializerMutationOptions(cls)
|
||||
if not _meta:
|
||||
_meta = SerializerMutationOptions(cls)
|
||||
_meta.lookup_field = lookup_field
|
||||
_meta.model_operations = model_operations
|
||||
_meta.serializer_class = serializer_class
|
||||
|
|
Loading…
Reference in New Issue
Block a user