Permalink
Browse files

Set the correct renderer for the browsable api.

Fix typo.
  • Loading branch information...
1 parent b93a0d9 commit 17ec45e7d2de77bf7332d0017982a41d2ba43fb5 @markotibold markotibold committed Nov 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 fiber/rest_api/views.py
View
@@ -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

0 comments on commit 17ec45e

Please sign in to comment.