Skip to content

Commit

Permalink
Fix style for some text
Browse files Browse the repository at this point in the history
  • Loading branch information
nimiq committed Aug 6, 2014
1 parent 0ae5590 commit 62d0d4e
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 @@ -29,7 +29,7 @@ Unlike all our other API endpoints, we don't want to use JSON, but instead just

The other thing we need to consider when creating the code highlight view is that there's no existing concrete generic view that we can use. We're not returning an object instance, but instead a property of an object instance.

Instead of using a concrete generic view, we'll use the base class for representing instances, and create our own `.get()` method. In your snippets.views add:
Instead of using a concrete generic view, we'll use the base class for representing instances, and create our own `.get()` method. In your `snippets.views` add:

from rest_framework import renderers
from rest_framework.response import Response
Expand Down

0 comments on commit 62d0d4e

Please sign in to comment.