summaryrefslogtreecommitdiff
path: root/django/core/files/uploadhandler.py
diff options
context:
space:
mode:
authorGregor MacGregor <Timothy.J.Clifford@gmail.com>2013-09-06 13:24:52 -0500
committerTim Graham <timograham@gmail.com>2013-09-10 11:09:59 -0400
commitb2b763448f726ee952743596e9a34fcb154bdb12 (patch)
tree5da48d220f856a2c8e42a0e1a19e909b7401ac59 /django/core/files/uploadhandler.py
parentd59f1993f150f83524051d96b52df08da4dcf011 (diff)
Fixed #20841 -- Added messages to NotImplementedErrors
Thanks joseph at vertstudios.com for the suggestion.
Diffstat (limited to 'django/core/files/uploadhandler.py')
-rw-r--r--django/core/files/uploadhandler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/files/uploadhandler.py b/django/core/files/uploadhandler.py
index 6739b26e0c..914e2c51fa 100644
--- a/django/core/files/uploadhandler.py
+++ b/django/core/files/uploadhandler.py
@@ -104,7 +104,7 @@ class FileUploadHandler(object):
Receive data from the streamed upload parser. ``start`` is the position
in the file of the chunk.
"""
- raise NotImplementedError()
+ raise NotImplementedError('subclasses of FileUploadHandler must provide a recieve_data_chunk() method')
def file_complete(self, file_size):
"""
@@ -113,7 +113,7 @@ class FileUploadHandler(object):
Subclasses should return a valid ``UploadedFile`` object.
"""
- raise NotImplementedError()
+ raise NotImplementedError('subclasses of FileUploadHandler must provide a file_complete() method')
def upload_complete(self):
"""