Merge remote-tracking branch 'upstream/master' into writable-serializers

This commit is contained in:
Mark Aaron Shirley 2012-12-19 14:37:44 -08:00
commit ae6ca7456f
3 changed files with 9 additions and 8 deletions

View File

@ -8,6 +8,7 @@
### Master
* Bugfix: Fix exception in browseable API on DELETE.
* Bugfix: Fix issue where pk was was being set to a string if set by URL kwarg.
### 2.1.11

View File

@ -124,6 +124,6 @@ class DestroyModelMixin(object):
Should be mixed in with `SingleObjectBaseView`.
"""
def destroy(self, request, *args, **kwargs):
self.object = self.get_object()
self.object.delete()
obj = self.get_object()
obj.delete()
return Response(status=status.HTTP_204_NO_CONTENT)