mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 17:47:12 +03:00
Use options correctly
This commit is contained in:
parent
f034946cda
commit
26a4d315c5
|
@ -46,7 +46,7 @@ class FormMutationMeta(MutationMeta):
|
|||
|
||||
cls.Input = convert_form_to_input_type(options.form_class)
|
||||
|
||||
field_kwargs = {cls.options.input_field_name: Argument(cls.Input, required=True)}
|
||||
field_kwargs = {options.input_field_name: Argument(cls.Input, required=True)}
|
||||
cls.Field = partial(
|
||||
Field,
|
||||
cls,
|
||||
|
@ -127,7 +127,7 @@ class ModelFormMutationMeta(MutationMeta):
|
|||
|
||||
cls.Input = convert_form_to_input_type(options.form_class)
|
||||
|
||||
field_kwargs = {cls.options.input_field_name: Argument(cls.Input, required=True)}
|
||||
field_kwargs = {options.input_field_name: Argument(cls.Input, required=True)}
|
||||
cls.Field = partial(
|
||||
Field,
|
||||
cls,
|
||||
|
|
Loading…
Reference in New Issue
Block a user