diff options
| author | Craig Blaszczyk | 2015-01-07 12:33:37 +0000 |
|---|---|---|
| committer | Craig Blaszczyk | 2015-01-07 12:33:37 +0000 |
| commit | 9a4267049ba37883e3e0c21b5d453b9551343b8d (patch) | |
| tree | fcd2fa89718be02f2c6b1c06e2a75e46b886670a /rest_framework/exceptions.py | |
| parent | 662a907bdf821c29b42b60ce2b44eb8149a85bd7 (diff) | |
| download | django-rest-framework-9a4267049ba37883e3e0c21b5d453b9551343b8d.tar.bz2 | |
use double quotes in user messages
Diffstat (limited to 'rest_framework/exceptions.py')
| -rw-r--r-- | rest_framework/exceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py index 3ca8e538..f8a43871 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -95,7 +95,7 @@ class NotFound(APIException): class MethodNotAllowed(APIException): status_code = status.HTTP_405_METHOD_NOT_ALLOWED - default_detail = _("Method '{method}' not allowed.") + default_detail = _("Method \"{method}\" not allowed.") def __init__(self, method, detail=None): if detail is not None: @@ -118,7 +118,7 @@ class NotAcceptable(APIException): class UnsupportedMediaType(APIException): status_code = status.HTTP_415_UNSUPPORTED_MEDIA_TYPE - default_detail = _("Unsupported media type '{media_type}' in request.") + default_detail = _("Unsupported media type \"{media_type}\" in request.") def __init__(self, media_type, detail=None): if detail is not None: |
