mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
Fixes inconsistent headers in serializer
docs
Some headers were using `.`, some - were not. Now, all of them are the same with `.`, because it was easier to fix.
This commit is contained in:
parent
e92016ac2e
commit
387d6371ae
|
@ -605,13 +605,13 @@ For `ModelSerializer` this defaults to `PrimaryKeyRelatedField`.
|
||||||
|
|
||||||
For `HyperlinkedModelSerializer` this defaults to `serializers.HyperlinkedRelatedField`.
|
For `HyperlinkedModelSerializer` this defaults to `serializers.HyperlinkedRelatedField`.
|
||||||
|
|
||||||
### `serializer_url_field`
|
### `.serializer_url_field`
|
||||||
|
|
||||||
The serializer field class that should be used for any `url` field on the serializer.
|
The serializer field class that should be used for any `url` field on the serializer.
|
||||||
|
|
||||||
Defaults to `serializers.HyperlinkedIdentityField`
|
Defaults to `serializers.HyperlinkedIdentityField`
|
||||||
|
|
||||||
### `serializer_choice_field`
|
### `.serializer_choice_field`
|
||||||
|
|
||||||
The serializer field class that should be used for any choice fields on the serializer.
|
The serializer field class that should be used for any choice fields on the serializer.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user