Changeset 6241
- Timestamp:
- 09/14/07 17:49:01 (1 year ago)
- Files:
-
- django/trunk/django/core/management/validation.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/management/validation.py
r6211 r6241 53 53 e.add(opts, '"%s": prepopulate_from should be a list or tuple.' % f.name) 54 54 if f.choices: 55 if isinstance(f.choices, basestring) or \ 56 not is_iterable(f.choices): 55 if isinstance(f.choices, basestring) or not is_iterable(f.choices): 57 56 e.add(opts, '"%s": "choices" should be iterable (e.g., a tuple or list).' % f.name) 58 57 else:
