diff options
| author | Rodrigo Martell | 2013-07-27 10:09:56 +1000 | 
|---|---|---|
| committer | Rodrigo Martell | 2013-07-27 10:09:56 +1000 | 
| commit | 3a898a11f7683f0f5448ce4d28af212c04befea7 (patch) | |
| tree | 8671e65fc3202fe22320ad774538fa0057d51f84 | |
| parent | 0e8a01e5de73507ab84693f594c8e78826cf6a8f (diff) | |
| download | django-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.
| -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 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') | 
