Skip to content

Commit db65282

Browse files
authored
Merge pull request #6588 from rawteech/master
Add some words about `extra_kwargs` and explicitly defined fields.
2 parents 29cbe57 + f8c4e50 commit db65282

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api-guide/serializers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ This option is a dictionary, mapping field names to a dictionary of keyword argu
572572
user.save()
573573
return user
574574

575+
Please keep in mind that, if the field has already been explicitly declared on the serializer class, then the `extra_kwargs` option will be ignored.
576+
575577
## Relational fields
576578

577579
When serializing model instances, there are a number of different ways you might choose to represent relationships. The default representation for `ModelSerializer` is to use the primary keys of the related instances.

0 commit comments

Comments
 (0)