diff options
| author | Dmitry Mukhin | 2014-04-07 20:31:12 +0400 |
|---|---|---|
| committer | Dmitry Mukhin | 2014-04-07 20:31:12 +0400 |
| commit | c3891b6e00daa7a92cca1c88599e046f72926bb4 (patch) | |
| tree | 201120791360e16fa8fdea1ce688223801ce09ed /rest_framework/exceptions.py | |
| parent | 115fe04842b58226b9fa29069b95af7df62b046a (diff) | |
| download | django-rest-framework-c3891b6e00daa7a92cca1c88599e046f72926bb4.tar.bz2 | |
set Retry-After header when throttled
Diffstat (limited to 'rest_framework/exceptions.py')
| -rw-r--r-- | rest_framework/exceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py index 5f774a9f..389032bd 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -71,7 +71,7 @@ class UnsupportedMediaType(APIException): class Throttled(APIException): status_code = status.HTTP_429_TOO_MANY_REQUESTS default_detail = 'Request was throttled.' - extra_detail = "Expected available in %d second%s." + extra_detail = " Expected available in %d second%s." def __init__(self, wait=None, detail=None): if wait is None: |
