mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Typo fix in docs/api-guide/relations.md
`slug field` in code snippet was replaced to `slug_field`
This commit is contained in:
parent
37f7b76f72
commit
5fa8a31855
|
@ -459,7 +459,7 @@ In cases where the cutoff is being enforced you may want to instead use a plain
|
|||
|
||||
assigned_to = serializers.SlugRelatedField(
|
||||
queryset=User.objects.all(),
|
||||
slug field='username',
|
||||
slug_field='username',
|
||||
style={'base_template': 'input.html'}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user