Skip to content

Commit e2ac311

Browse files
committed
updated names
1 parent 0773c8b commit e2ac311

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/rest-framework.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Other default attributes:
3535
3636
from graphene_django.rest_framework.mutation import SerializerMutation
3737
38-
class MyAwesomeMutation(SerializerMutation):
38+
class AwesomeModelMutation(SerializerMutation):
3939
class Meta:
40-
serializer_class = MySerializer
40+
serializer_class = MyModelSerializer
4141
model_operations = ['add', 'update']
4242
lookup_field = 'id'
4343
partial = False
@@ -52,9 +52,9 @@ updates are queried.
5252
5353
from graphene_django.rest_framework.mutation import SerializerMutation
5454
55-
class MyAwesomeMutation(SerializerMutation):
55+
class AwesomeModelMutation(SerializerMutation):
5656
class Meta:
57-
serializer_class = MySerializer
57+
serializer_class = MyModelSerializer
5858
5959
@classmethod
6060
def resolve_serializer_inputs(cls, root, info, **input):

0 commit comments

Comments
 (0)