diff options
| author | Tom Christie | 2013-02-12 08:57:23 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-02-12 08:58:28 +0000 | 
| commit | 55fdac4176ac6629481a8cca8dd2463da9c594a2 (patch) | |
| tree | 0b144a0ec8de1b2540450b66d36fd73c76aaa619 /docs/tutorial/4-authentication-and-permissions.md | |
| parent | f5a0275547ad264c8a9b9aa2a45cc461723a4f11 (diff) | |
| download | django-rest-framework-55fdac4176ac6629481a8cca8dd2463da9c594a2.tar.bz2 | |
Use `many=True` for serializers.
Diffstat (limited to 'docs/tutorial/4-authentication-and-permissions.md')
| -rw-r--r-- | docs/tutorial/4-authentication-and-permissions.md | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/tutorial/4-authentication-and-permissions.md b/docs/tutorial/4-authentication-and-permissions.md index 979421ea..282386c7 100644 --- a/docs/tutorial/4-authentication-and-permissions.md +++ b/docs/tutorial/4-authentication-and-permissions.md @@ -57,7 +57,7 @@ Now that we've got some users to work with, we'd better add representations of t      from django.contrib.auth.models import User      class UserSerializer(serializers.ModelSerializer): -        snippets = serializers.ManyPrimaryKeyRelatedField() +        snippets = serializers.PrimaryKeyRelatedField(many=True)          class Meta:              model = User | 
