﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24089	Misleading error raised during system check related to ModelAdmin	okrutny	arcturusannamalai	"When comma is forgoten when defining fieldsets on ModelAdmin, wrong error is raised:

ERRORS:
<class 'fund_profiles.admin.OrganizationAdmin'>: (admin.E012) There are duplicate field(s) in 'fieldsets[0][1]'.

Code to reproduce:

{{{
class OrganizationAdmin(admin.ModelAdmin):
    
    list_display = ('name','email', 'accepted_ads','accepted_rules','accepted_handling','date_created','date_modified')
    list_filter = ('verified','accepted_ads',)
    fieldsets = (
        (_('administration'), 
         {
             'fields': ('removed')
         }),
    )
}}}
Adding comma to tuple after 'removed' fixes issue.

"	Cleanup/optimization	closed	contrib.admin	1.7	Normal	fixed			Ready for checkin	1	0	0	0	1	0
