Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #1037: Update DjangoModelFormMutation to honor input_field_name #1202

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eprikazc
Copy link

Fixes: #1037

To get custom input_field_name working and at the same not totouch graphene.relay.mutation.ClientIDMutation, we do following:

  1. Change cls._meta.arguments to move field from default input field to custom one
  2. Override mutate method to rename custom input field back to input before calling super

This is my first contribution to django_graphene, please let me know if something should be changed/improved (perhaps tests are needed?)

@eprikazc eprikazc changed the title Update DjangoModelFormMutation to honor input_field_name Issue #1037: Update DjangoModelFormMutation to honor input_field_name May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DjangoModelFormMutation ignores input_field_name option
2 participants