Skip to content

Commit be22f16

Browse files
committed
Updated docs
1 parent b1948d7 commit be22f16

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/form-mutations.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Integration with Django forms
22
=============================
33

44
Graphene-Django comes with mutation classes that will convert the fields on Django forms into inputs on a mutation.
5+
*Note: the API is experimental and will likely change in the future.*
56

67
FormMutation
78
------------
@@ -37,7 +38,7 @@ ModelFormMutation
3738
class Meta:
3839
model = Pet
3940
40-
class PetMutation(ModelFormMutation):
41+
class PetMutation(DjangoModelFormMutation):
4142
class Meta:
4243
form_class = PetForm
4344
@@ -49,7 +50,7 @@ You can change the input name (default is ``input``) and the return field name (
4950

5051
.. code:: python
5152
52-
class PetMutation(ModelFormMutation):
53+
class PetMutation(DjangoModelFormMutation):
5354
class Meta:
5455
form_class = PetForm
5556
input_field_name = 'data'

0 commit comments

Comments
 (0)