Changeset 685
- Timestamp:
- 09/25/05 15:01:30 (3 years ago)
- Files:
-
- django/trunk/django/core/management.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management.py
r682 r685 525 525 if isinstance(f, meta.FileField) and not f.upload_to: 526 526 e.add(opts, '"%s" field: FileFields require an "upload_to" attribute.' % f.name) 527 if isinstance(f, meta.ImageField): 528 try: 529 from PIL import Image 530 except ImportError: 531 e.add(opts, '"%s" field: To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .') 527 532 if f.prepopulate_from is not None and type(f.prepopulate_from) not in (list, tuple): 528 533 e.add(opts, '"%s" field: prepopulate_from should be a list or tuple.' % f.name)
