Typo fix in docs/api-guide/relations.md

`slug field` in code snippet was replaced to `slug_field`
This commit is contained in:
m1kola 2016-01-06 17:58:45 +03:00
parent 37f7b76f72
commit 5fa8a31855

View File

@ -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'}
)