Skip to content

Commit

Permalink
Merge pull request #6588 from rawteech/master
Browse files Browse the repository at this point in the history
Add some words about `extra_kwargs` and explicitly defined fields.
  • Loading branch information
xordoquy committed Apr 15, 2019
2 parents 29cbe57 + f8c4e50 commit db65282
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api-guide/serializers.md
Expand Up @@ -572,6 +572,8 @@ This option is a dictionary, mapping field names to a dictionary of keyword argu
user.save()
return user

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.

## Relational fields

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.
Expand Down

0 comments on commit db65282

Please sign in to comment.