[FIX] "@api_view" calling error.

"@api_view" usage error.
This commit is contained in:
Liping Wang 2016-02-29 19:51:33 +08:00 committed by Xavier Ordoquy
parent d85162c83d
commit 05204333a5

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