aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/mixins.py
diff options
context:
space:
mode:
authorMark Aaron Shirley2012-12-19 14:37:44 -0800
committerMark Aaron Shirley2012-12-19 14:37:44 -0800
commitae6ca7456feda199124eb78f7872f969fa67d7b8 (patch)
tree60ef0e77fa0fbe8af097b36e9f83a3474d17ae8e /rest_framework/mixins.py
parentc6a6d7ac15b351e2d81685abefd44542367b6e6f (diff)
parentc29b08ad43c8de5f295176eaf0270427f3a737f3 (diff)
downloaddjango-rest-framework-ae6ca7456feda199124eb78f7872f969fa67d7b8.tar.bz2
Merge remote-tracking branch 'upstream/master' into writable-serializers
Diffstat (limited to 'rest_framework/mixins.py')
-rw-r--r--rest_framework/mixins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/mixins.py b/rest_framework/mixins.py
index 8dc0c329..2700606d 100644
--- a/rest_framework/mixins.py
+++ b/rest_framework/mixins.py
@@ -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)