diff options
| author | Sébastien Piquemal | 2012-02-10 10:18:39 +0200 |
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-10 10:18:39 +0200 |
| commit | db0b01037a95946938ccd44eae14d8779bfff1a9 (patch) | |
| tree | 120509363c6c1fa6491221a0b6d5835a9d84463e /djangorestframework/permissions.py | |
| parent | 2cdff1b01e3aca6c56cef433e786e3ae75362739 (diff) | |
| download | django-rest-framework-db0b01037a95946938ccd44eae14d8779bfff1a9.tar.bz2 | |
made suggested fixes
Diffstat (limited to 'djangorestframework/permissions.py')
| -rw-r--r-- | djangorestframework/permissions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/permissions.py b/djangorestframework/permissions.py index 4ddc35cb..aa4cd631 100644 --- a/djangorestframework/permissions.py +++ b/djangorestframework/permissions.py @@ -22,12 +22,12 @@ __all__ = ( _403_FORBIDDEN_RESPONSE = ImmediateResponse( - content={'detail': 'You do not have permission to access this resource. ' + + {'detail': 'You do not have permission to access this resource. ' + 'You may need to login or otherwise authenticate the request.'}, status=status.HTTP_403_FORBIDDEN) _503_SERVICE_UNAVAILABLE = ImmediateResponse( - content={'detail': 'request was throttled'}, + {'detail': 'request was throttled'}, status=status.HTTP_503_SERVICE_UNAVAILABLE) |
