Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set the correct renderer for the browsable api.

Fix typo.
  • Loading branch information...
commit 17ec45e7d2de77bf7332d0017982a41d2ba43fb5 1 parent b93a0d9
@markotibold markotibold authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 fiber/rest_api/views.py
View
4 fiber/rest_api/views.py
@@ -19,7 +19,7 @@
API_RENDERERS = (renderers.JSONRenderer, )
if API_RENDER_HTML:
- API_RENDERERS = (renderers.DocumentingHTMLRenderer, renderers.JSONRenderer)
+ API_RENDERERS = (renderers.BrowsableAPIRenderer, renderers.JSONRenderer)
_403_FORBIDDEN_RESPONSE = Response(
{
@@ -31,7 +31,7 @@
class FiberListCreateAPIView(generics.ListCreateAPIView):
def create(self, request, *args, **kwargs):
- response = super(FiberListCreateAPIView, self).created(request, *args, **kwargs)
+ response = super(FiberListCreateAPIView, self).create(request, *args, **kwargs)
PERMISSIONS.object_created(request.user, self.object)
return response
Please sign in to comment.
Something went wrong with that request. Please try again.