Commit bda15ac7 authored by Diederik van der Boor's avatar Diederik van der Boor
Browse files

Fix error message for file size check

parent 21a80cc3
......@@ -55,7 +55,7 @@ class PrivateFileField(models.FileField):
if self.max_file_size and file.size > self.max_file_size:
raise ValidationError(self.error_messages['file_too_large'].format(
max_size=filesizeformat(self.max_upload_size),
max_size=filesizeformat(self.max_file_size),
size=filesizeformat(file.size)
))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment