We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac77a56 commit 55ee588Copy full SHA for 55ee588
rest_framework/response.py
@@ -5,7 +5,7 @@
5
The appropriate renderer is called during Django's template response rendering.
6
"""
7
from __future__ import unicode_literals
8
-from django.core.handlers.wsgi import STATUS_CODE_TEXT
+from django.utils.six.moves.http_client import responses
9
from django.template.response import SimpleTemplateResponse
10
from django.utils import six
11
@@ -77,7 +77,7 @@ def status_text(self):
77
78
# TODO: Deprecate and use a template tag instead
79
# TODO: Status code text for RFC 6585 status codes
80
- return STATUS_CODE_TEXT.get(self.status_code, '')
+ return responses.get(self.status_code, '')
81
82
def __getstate__(self):
83
0 commit comments