Ticket #18051: ticket18051.diff
File ticket18051.diff, 568 bytes (added by , 12 years ago) |
---|
-
django/contrib/admin/util.py
diff --git a/django/contrib/admin/util.py b/django/contrib/admin/util.py index 9611b00..224fd86 100644
a b def flatten_fieldsets(fieldsets): 87 87 for name, opts in fieldsets: 88 88 for field in opts['fields']: 89 89 # type checking feels dirty, but it seems like the best way here 90 if type(field) == tuple:90 if isinstance(field, (list, tuple)): 91 91 field_names.extend(field) 92 92 else: 93 93 field_names.append(field)