diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-12-07 05:13:18 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-12-07 05:13:18 +0000 |
| commit | 374a6eaa4c7cb412d908960b193d162ad5b00060 (patch) | |
| tree | c6155553ecc4d2b64a8e8bc627682f22608ee3f9 | |
| parent | 7106c68e598e0f2ad2036249122222f1adb3b2d1 (diff) | |
Fixed #1009 -- Fixed small typo in HasAllowableSize validator. Thanks, bsoltani
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1564 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/validators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/validators.py b/django/core/validators.py index b36f000972..a319a1c23a 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -362,7 +362,7 @@ class HasAllowableSize: def __init__(self, min_size=None, max_size=None, min_error_message=None, max_error_message=None): self.min_size, self.max_size = min_size, max_size self.min_error_message = min_error_message or lazy_inter(gettext_lazy("Make sure your uploaded file is at least %s bytes big."), min_size) - self.max_error_message = max_error_message or lazy_inter(gettext_lazy("Make sure your uploaded file is at most %s bytes big."), min_size) + self.max_error_message = max_error_message or lazy_inter(gettext_lazy("Make sure your uploaded file is at most %s bytes big."), max_size) def __call__(self, field_data, all_data): if self.min_size is not None and len(field_data['content']) < self.min_size: |
