Changeset 7837
- Timestamp:
- 07/04/08 21:14:34 (2 months ago)
- Files:
-
- django/trunk/django/core/validators.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/validators.py
r7258 r7837 178 178 from cStringIO import StringIO 179 179 try: 180 content = field_data ['content']180 content = field_data.read() 181 181 except TypeError: 182 182 raise ValidationError, _("No file was submitted. Check the encoding type on the form.") … … 470 470 def __call__(self, field_data, all_data): 471 471 try: 472 content = field_data ['content']472 content = field_data.read() 473 473 except TypeError: 474 474 raise ValidationError, ugettext_lazy("No file was submitted. Check the encoding type on the form.")
