diff options
| author | Tom Christie | 2012-11-09 13:49:52 +0000 | 
|---|---|---|
| committer | Tom Christie | 2012-11-09 13:49:52 +0000 | 
| commit | 8953a60196cb55ec75902882314da5a42636349c (patch) | |
| tree | 43bf6ea1f69955aeecd83fb9f866d92ea9a5f3df /rest_framework/exceptions.py | |
| parent | b78872b7dbb55f1aa2d21f15fbb952f0c7156326 (diff) | |
| parent | 9aaeeacdfebc244850e82469e4af45af252cca4d (diff) | |
| download | django-rest-framework-8953a60196cb55ec75902882314da5a42636349c.tar.bz2 | |
Merge with master
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 6ae0c95c..d635351c 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -47,14 +47,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." | 
