aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorStephan Groß2012-11-19 17:35:28 +0100
committerStephan Groß2012-11-19 17:35:32 +0100
commit728e505180d130192c54eec47bd191ab459ebf83 (patch)
treea26915652195c376aaff0d0c1e0486e4f48f935c /rest_framework
parent44ff2e0add240915d3217ba418178e58e2920419 (diff)
downloaddjango-rest-framework-728e505180d130192c54eec47bd191ab459ebf83.tar.bz2
updated to buildin status codes
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/renderers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_framework/renderers.py b/rest_framework/renderers.py
index 870464f0..a2b7704d 100644
--- a/rest_framework/renderers.py
+++ b/rest_framework/renderers.py
@@ -19,7 +19,7 @@ from rest_framework.request import clone_request
from rest_framework.utils import dict2xml
from rest_framework.utils import encoders
from rest_framework.utils.breadcrumbs import get_breadcrumbs
-from rest_framework import VERSION
+from rest_framework import VERSION, status
from rest_framework import serializers, parsers
@@ -479,7 +479,7 @@ class BrowsableAPIRenderer(BaseRenderer):
# Munge DELETE Response code to allow us to return content
# (Do this *after* we've rendered the template so that we include
# the normal deletion response code in the output)
- if response.status_code == 204:
- response.status_code = 200
+ if response.status_code == status.HTTP_204_NO_CONTENT:
+ response.status_code = status.HTTP_200_OK
return ret