mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Fixes inconsistent headers in serializer
docs (#8056)
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
c8a9c856c2
commit
d2977cff98
|
@ -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