1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00

Negligible formatting change to [6211]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-09-14 22:49:01 +00:00
parent 03652c7f2b
commit e74880ed22

View File

@ -52,8 +52,7 @@ def get_validation_errors(outfile, app=None):
if f.prepopulate_from is not None and type(f.prepopulate_from) not in (list, tuple): if f.prepopulate_from is not None and type(f.prepopulate_from) not in (list, tuple):
e.add(opts, '"%s": prepopulate_from should be a list or tuple.' % f.name) e.add(opts, '"%s": prepopulate_from should be a list or tuple.' % f.name)
if f.choices: if f.choices:
if isinstance(f.choices, basestring) or \ if isinstance(f.choices, basestring) or not is_iterable(f.choices):
not is_iterable(f.choices):
e.add(opts, '"%s": "choices" should be iterable (e.g., a tuple or list).' % f.name) e.add(opts, '"%s": "choices" should be iterable (e.g., a tuple or list).' % f.name)
else: else:
for c in f.choices: for c in f.choices: