﻿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
26560	m2m_changed signal does not fire in django admin when using inlines	Iman Mirzadeh	Iman Mirzadeh	"in django admin if we use inline(tabular or stacked) for many to many field, after editing it on admin the m2m_changed signal does not fire !!
if we use normal fields it works


{{{
#models.py
class TestModel(models.Model):
    name = models.CharField(max_length = 100)
    events = models.ManyToManyField(Event,related_name=""testmodels"")

#admin.py
@admin.register(TestModel)
class TestModelAdmin(admin.ModelAdmin):
    list_display = (""__unicode__"",""name"")
    inlines = [EventInline,]
    exclude = ('events',)
}}}

but when I change it to 

{{{
@admin.register(TestModel)
class TestModelAdmin(admin.ModelAdmin):
    list_display = (""__unicode__"",""name"")
}}}

it works fine and signal triggered !
actually I found that the main problem is :
{{{
    exclude = ('events',)
}}}
But this is a bug because when we add something inline in admin using m2m relationship,the signal does not fire!!

"	Uncategorized	closed	contrib.admin	1.8	Normal	invalid	m2m_changed djang_admin admin_inline		Unreviewed	0	0	0	0	0	0
