aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/exceptions.py
diff options
context:
space:
mode:
authorCraig Blaszczyk2014-12-31 13:03:16 +0000
committerCraig Blaszczyk2015-01-02 11:08:31 +0000
commita90ba2bc11de5fb391b95d4fce84f87ae7f88eff (patch)
treece5cf15df73e1a4a22725c5326d1a8d63a470a35 /rest_framework/exceptions.py
parentfaf76a4b75f12f3fa9de4e3ec455daa239af4d89 (diff)
downloaddjango-rest-framework-a90ba2bc11de5fb391b95d4fce84f87ae7f88eff.tar.bz2
update error messages for language and consistency
Diffstat (limited to 'rest_framework/exceptions.py')
-rw-r--r--rest_framework/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py
index 2586fc33..d78b7e97 100644
--- a/rest_framework/exceptions.py
+++ b/rest_framework/exceptions.py
@@ -36,7 +36,7 @@ class APIException(Exception):
Subclasses should provide `.status_code` and `.default_detail` properties.
"""
status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
- default_detail = _('A server error occurred')
+ default_detail = _('A server error occurred.')
def __init__(self, detail=None):
if detail is not None:
@@ -107,7 +107,7 @@ class MethodNotAllowed(APIException):
class NotAcceptable(APIException):
status_code = status.HTTP_406_NOT_ACCEPTABLE
- default_detail = _('Could not satisfy the request Accept header')
+ default_detail = _('Could not satisfy the request Accept header.')
def __init__(self, detail=None, available_renderers=None):
if detail is not None: