aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/5-relationships-and-hyperlinked-apis.md
diff options
context:
space:
mode:
authorRodrigo Martell2013-07-27 10:09:56 +1000
committerRodrigo Martell2013-07-27 10:09:56 +1000
commit3a898a11f7683f0f5448ce4d28af212c04befea7 (patch)
tree8671e65fc3202fe22320ad774538fa0057d51f84 /docs/tutorial/5-relationships-and-hyperlinked-apis.md
parent0e8a01e5de73507ab84693f594c8e78826cf6a8f (diff)
downloaddjango-rest-framework-3a898a11f7683f0f5448ce4d28af212c04befea7.tar.bz2
Fix Tutorial5 serializers.py typo
[Issue #N/A] A slight typo at Tutorial5 causing an Exception "name 'models' is not defined". A subtle one that can confuse Python/Django noobs like me.
Diffstat (limited to 'docs/tutorial/5-relationships-and-hyperlinked-apis.md')
-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 2e013a94..2cf44bf9 100644
--- a/docs/tutorial/5-relationships-and-hyperlinked-apis.md
+++ b/docs/tutorial/5-relationships-and-hyperlinked-apis.md
@@ -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')