Skip to content

Fix code errors in form-mutations.rst #499

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

Merged
merged 1 commit into from
Mar 19, 2019

Conversation

toolness
Copy link
Contributor

@toolness toolness commented Aug 19, 2018

This fixes what appear to be some code errors/typos:

  • The FormMutation class was renamed to DjangoFormMutation, and ModelFormMutation to DjangoModelFormMutation, in 40610c6.
  • form_valid was renamed to perform_mutate in 463ce68.

It also clarifies a few things that I found confusing:

  • It explicitly mentions that perform_mutate is a class method.
  • The code samples now import the form classes from their packages, so readers know where to import them from too.

@coveralls
Copy link

coveralls commented Aug 19, 2018

Coverage Status

Coverage remained the same at 94.356% when pulling 24a25a8 on toolness:patch-1 into 6ce59ae on graphql-python:master.

This fixes what appear to be some code errors/typos:

* The `FormMutation` class was renamed to `DjangoFormMutation`, and
  `ModelFormMutation` to `DjangoModelFormMutation`, in
  40610c6.
* `form_valid` was renamed to `perform_mutate` in
  463ce68.

It also clarifies a few things that I found confusing:

* It explicitly mentions that `perform_mutate` is a class method.
* The code samples now import the form classes from their packages, so readers
  know where to import them from too.
@jkimbo jkimbo merged commit 263c726 into graphql-python:master Mar 19, 2019
@jkimbo
Copy link
Member

jkimbo commented Mar 19, 2019

Thanks for the improvements @toolness !

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.

4 participants