summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/core/management/validation.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/django/core/management/validation.py b/django/core/management/validation.py
index 6528a34f29..9e004d3d25 100644
--- a/django/core/management/validation.py
+++ b/django/core/management/validation.py
@@ -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):
e.add(opts, '"%s": prepopulate_from should be a list or tuple.' % f.name)
if f.choices:
- if isinstance(f.choices, basestring) or \
- not is_iterable(f.choices):
+ if isinstance(f.choices, basestring) or not is_iterable(f.choices):
e.add(opts, '"%s": "choices" should be iterable (e.g., a tuple or list).' % f.name)
else:
for c in f.choices: