Merge pull request #3971 from lynndotconfig/master

[change] using safer calling way of  "@api_view" in docs/tutorial/5-relationships-and-hyperlinked-apis.md
This commit is contained in:
Xavier Ordoquy 2016-03-01 10:20:21 +01:00
commit c2cfb84308

View File

@ -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),