mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-25 00:34:21 +03:00
Merge pull request #1011 from coderigo/docs
Fix Tutorial5 serializers.py typo
This commit is contained in:
commit
f22efdc40f
|
@ -80,7 +80,7 @@ We can easily re-write our existing serializers to use hyperlinking.
|
|||
highlight = serializers.HyperlinkedIdentityField(view_name='snippet-highlight', format='html')
|
||||
|
||||
class Meta:
|
||||
model = models.Snippet
|
||||
model = Snippet
|
||||
fields = ('url', 'highlight', 'owner',
|
||||
'title', 'code', 'linenos', 'language', 'style')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user