-
Notifications
You must be signed in to change notification settings - Fork 769
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
Why DjangoFormMutation.perform_mutate()
calls form.save()
#1152
Labels
Comments
You're correct. That should probably be part of the DjangoModelFormMutation instead |
Yeah, it is there: graphene-django/graphene_django/forms/mutation.py Lines 179 to 183 in 3058118
|
Made a PR for this, @zbyte64 could you review? |
zbyte64
pushed a commit
that referenced
this issue
Apr 11, 2021
Django's plain (non-model) forms don't have the `save` method, so calling this would just result in an `AttributeError` before this change. Resolves #1152
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Django's plain (non-model)
Form
s don't have thesave()
method. Why doesDjangoFormMutation.perform_mutate()
still call that here:graphene-django/graphene_django/forms/mutation.py
Line 104 in 3058118
Am I missing something or does this just always end up in an error?
The text was updated successfully, but these errors were encountered: