Skip to content

Commit 415d7d7

Browse files
committed
PR feedback
1 parent 1eaf53f commit 415d7d7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/rest-framework.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ You can create a Mutation based on a serializer by using the
1919
class Meta:
2020
serializer_class = MySerializer
2121
22-
Add/Update Operations
22+
Create/Update Operations
2323
---------------------
2424

25-
By default ModelSerializers accept add and update operations. To
25+
By default ModelSerializers accept create and update operations. To
2626
customize this use the `model_operations` attribute. The update
2727
operation looks up models by the primary key by default. You can
2828
customize the look up with the lookup attribute.
@@ -38,9 +38,8 @@ Other default attributes:
3838
class AwesomeModelMutation(SerializerMutation):
3939
class Meta:
4040
serializer_class = MyModelSerializer
41-
model_operations = ['add', 'update']
41+
model_operations = ['create', 'update']
4242
lookup_field = 'id'
43-
partial = False
4443
4544
Overriding Update Queries
4645
-------------------------

0 commit comments

Comments
 (0)