graphene-django icon indicating copy to clipboard operation
graphene-django copied to clipboard

DjangoModelFormMutation ignores input_field_name option

Open zbyte64 opened this issue 3 years ago • 2 comments

  • What is the current behavior?

DjangoModelFormMutation has the option to change the input name of the mutation, but it is always set to "input" regardless of value. Like so:

class SendMessageMutation(DjangoModelFormMutation):
    message = relay.Node.Field(MessageType)

    class Meta:
        form_class = SendMessageForm
        input_field_name = "message"
  • What is the expected behavior? Documentation states you can set input_field_name in the meta: https://docs.graphene-python.org/projects/django/en/latest/mutations/

  • Please tell us about your environment:

    • Version: graphene-django: 2.13.0, graphene 2.1.8
    • Platform: Django 3.0.11

zbyte64 avatar Sep 12 '20 18:09 zbyte64

Bump. As far as I can tell, the only reference to input_field_name in the entire codebase is the one in the documentation. I don't think this feature is implemented whatsoever.

synic avatar Sep 14 '21 17:09 synic

It's still in the documentation. https://docs.graphene-python.org/projects/django/en/stable/mutations/#djangomodelformmutation

odigity avatar Jun 17 '22 19:06 odigity