diff options
| author | Tom Christie | 2014-12-09 19:53:27 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-12-09 19:53:27 +0000 | 
| commit | 76956beab41cda7abdfb0aac714b35494f6ca3d5 (patch) | |
| tree | 79d620591d5109c5ad6d420f9af1071b4ce460a1 /docs/tutorial | |
| parent | 7d70e56ce378a7876a0fd7f29b52a492e46053b9 (diff) | |
| download | django-rest-framework-76956beab41cda7abdfb0aac714b35494f6ca3d5.tar.bz2 | |
snippets relationship in tutorial should be read_only
Diffstat (limited to 'docs/tutorial')
| -rw-r--r-- | docs/tutorial/5-relationships-and-hyperlinked-apis.md | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/tutorial/5-relationships-and-hyperlinked-apis.md b/docs/tutorial/5-relationships-and-hyperlinked-apis.md index 58422929..57e3b6c5 100644 --- a/docs/tutorial/5-relationships-and-hyperlinked-apis.md +++ b/docs/tutorial/5-relationships-and-hyperlinked-apis.md @@ -85,7 +85,7 @@ We can easily re-write our existing serializers to use hyperlinking. In your `sn      class UserSerializer(serializers.HyperlinkedModelSerializer): -        snippets = serializers.HyperlinkedRelatedField(many=True, view_name='snippet-detail') +        snippets = serializers.HyperlinkedRelatedField(many=True, view_name='snippet-detail', read_only=True)          class Meta:              model = User | 
