Skip to content

Commit

Permalink
Merge pull request #3 from grahamu/destroy-return-code
Browse files Browse the repository at this point in the history
Fixing "destroy" endpoint return status code.
  • Loading branch information
paltman committed May 9, 2016
2 parents e109884 + 435ea94 commit 9890156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinax/api/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def render_create(self, resource, **kwargs):
return res

def render_delete(self):
return Response({}, status=200)
return Response({}, status=204)

def error_response_kwargs(self, message, title=None, status=400, extra=None):
if extra is None:
Expand Down

0 comments on commit 9890156

Please sign in to comment.