aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorTom Christie2014-12-09 19:53:27 +0000
committerTom Christie2014-12-09 19:53:27 +0000
commit76956beab41cda7abdfb0aac714b35494f6ca3d5 (patch)
tree79d620591d5109c5ad6d420f9af1071b4ce460a1 /docs
parent7d70e56ce378a7876a0fd7f29b52a492e46053b9 (diff)
downloaddjango-rest-framework-76956beab41cda7abdfb0aac714b35494f6ca3d5.tar.bz2
snippets relationship in tutorial should be read_only
Diffstat (limited to 'docs')
-rw-r--r--docs/tutorial/5-relationships-and-hyperlinked-apis.md2
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