File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ You can create a Mutation based on a serializer by using the
19
19
class Meta :
20
20
serializer_class = MySerializer
21
21
22
- Add /Update Operations
22
+ Create /Update Operations
23
23
---------------------
24
24
25
- By default ModelSerializers accept add and update operations. To
25
+ By default ModelSerializers accept create and update operations. To
26
26
customize this use the `model_operations ` attribute. The update
27
27
operation looks up models by the primary key by default. You can
28
28
customize the look up with the lookup attribute.
@@ -38,9 +38,8 @@ Other default attributes:
38
38
class AwesomeModelMutation (SerializerMutation ):
39
39
class Meta :
40
40
serializer_class = MyModelSerializer
41
- model_operations = [' add ' , ' update' ]
41
+ model_operations = [' create ' , ' update' ]
42
42
lookup_field = ' id'
43
- partial = False
44
43
45
44
Overriding Update Queries
46
45
-------------------------
You can’t perform that action at this time.
0 commit comments