Skip to content

Commit

Permalink
snippets relationship in tutorial should be read_only
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie committed Dec 9, 2014
1 parent 7d70e56 commit 76956be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/5-relationships-and-hyperlinked-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76956be

Please sign in to comment.