diff options
| author | Tom Christie | 2012-10-29 17:08:38 +0000 | 
|---|---|---|
| committer | Tom Christie | 2012-10-29 17:08:38 +0000 | 
| commit | d206c686a643b7cc720743d8dab207e8ad0280f8 (patch) | |
| tree | e11234f0f3c3f11e9b5edceed239ad238d59d09e /rest_framework/exceptions.py | |
| parent | ee8ab283f091b73e284c74a11882f910a04eb2de (diff) | |
| download | django-rest-framework-d206c686a643b7cc720743d8dab207e8ad0280f8.tar.bz2 | |
Fixes for urls with suffixes
Diffstat (limited to 'rest_framework/exceptions.py')
| -rw-r--r-- | rest_framework/exceptions.py | 8 | 
1 files changed, 0 insertions, 8 deletions
| diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py index 572425b9..89479deb 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -31,14 +31,6 @@ class PermissionDenied(APIException):          self.detail = detail or self.default_detail -class InvalidFormat(APIException): -    status_code = status.HTTP_404_NOT_FOUND -    default_detail = "Format suffix '.%s' not found." - -    def __init__(self, format, detail=None): -        self.detail = (detail or self.default_detail) % format - -  class MethodNotAllowed(APIException):      status_code = status.HTTP_405_METHOD_NOT_ALLOWED      default_detail = "Method '%s' not allowed." | 
