summaryrefslogtreecommitdiff
path: root/tests/model_fields
diff options
context:
space:
mode:
authorAaron France <aaron.l.france@gmail.com>2014-02-15 11:28:09 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2014-02-15 15:01:44 +0100
commit23b781cc3d17f12c5158f781b2c8cd9d47550c20 (patch)
treea832668067ead7c6496a820c3e8b65809e8dfe05 /tests/model_fields
parent2ebccebf0609229317c2f5b9a76664dc216f27eb (diff)
Fixed #22018 -- Fixed checks for ModelAdmin.fields not handling sub-lists.
Flatten a level of sublists before checking for duplicate fields. When given sublists such as: ```python class FooAdmin(admin.ModelAdmin): fields = ('one', ('one', 'two')) ``` The previous code did not correctly detect the duplicated 'one' field. Thanks to jwa for the report.
Diffstat (limited to 'tests/model_fields')
0 files changed, 0 insertions, 0 deletions