File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -565,6 +565,14 @@ class ModelSerializer(Serializer):
565
565
* A set of default fields are automatically populated.
566
566
* A set of default validators are automatically populated.
567
567
* Default `.create()` and `.update()` implementations are provided.
568
+
569
+ The process of automatically determining a set of serializer fields
570
+ based on the model fields is reasonably complex, but you almost certainly
571
+ don't need to dig into the implemention.
572
+
573
+ If the `ModelSerializer` class *doesn't* generate the set of fields that
574
+ you need you should either declare the extra/differing fields explicitly on
575
+ the serializer class, or simply use a `Serializer` class.
568
576
"""
569
577
_field_mapping = ClassLookupDict({
570
578
models.AutoField: IntegerField,
You can’t perform that action at this time.
0 commit comments