diff --git a/django/core/management/validation.py b/django/core/management/validation.py
index 9b65b8e..ddf454f 100644
a
|
b
|
def get_validation_errors(outfile, app=None):
|
62 | 62 | e.add(opts, '"%s": "choices" should be iterable (e.g., a tuple or list).' % f.name) |
63 | 63 | else: |
64 | 64 | for c in f.choices: |
65 | | if not type(c) in (tuple, list) or len(c) != 2: |
| 65 | if not isinstance(c, (list, tuple)) or len(c) != 2: |
66 | 66 | e.add(opts, '"%s": "choices" should be a sequence of two-tuples.' % f.name) |
67 | 67 | if f.db_index not in (None, True, False): |
68 | 68 | e.add(opts, '"%s": "db_index" should be either None, True or False.' % f.name) |