diff options
Diffstat (limited to 'docs')
| -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 57e3b6c5..c21efd7f 100644 --- a/docs/tutorial/5-relationships-and-hyperlinked-apis.md +++ b/docs/tutorial/5-relationships-and-hyperlinked-apis.md @@ -75,7 +75,7 @@ The `HyperlinkedModelSerializer` has the following differences from `ModelSerial  We can easily re-write our existing serializers to use hyperlinking. In your `snippets/serializers.py` add:      class SnippetSerializer(serializers.HyperlinkedModelSerializer): -        owner = serializers.Field(source='owner.username') +        owner = serializers.ReadOnlyField(source='owner.username')          highlight = serializers.HyperlinkedIdentityField(view_name='snippet-highlight', format='html')          class Meta: | 
