Skip to content

Commit

Permalink
Merge pull request #3971 from lynndotconfig/master
Browse files Browse the repository at this point in the history
[change] using safer calling way of  "@api_view" in docs/tutorial/5-relationships-and-hyperlinked-apis.md
  • Loading branch information
xordoquy committed Mar 1, 2016
2 parents eec7c17 + c3cea14 commit c2cfb84
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 @@ -11,7 +11,7 @@ Right now we have endpoints for 'snippets' and 'users', but we don't have a sing
from rest_framework.reverse import reverse


@api_view(('GET',))
@api_view(['GET'])
def api_root(request, format=None):
return Response({
'users': reverse('user-list', request=request, format=format),
Expand Down

0 comments on commit c2cfb84

Please sign in to comment.