﻿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
13022	when saving a model with m2m field in the admin, 'clear' and 'add' m2m_changed signals are fired even when there is no change.	benc	nobody	"I've built a simple test project with one app and two models, Model1 and Model2.
Model2 has a ManyToManyField to Model1.
I've created one Model1 instance and one Model2 instance with a relation to the Model1 instance.

When saving the Model2 instance in the admin, even without a change, m2m_changed fires twice.
I think it shouldn't fire at all when the admin form is saved without a change:

{{{
sender  <class 'testproject.testapp.models.Model2_models1'>
instance  Model2 object
action  clear
model  <class 'testproject.testapp.models.Model1'>
sender  <class 'testproject.testapp.models.Model2_models1'>
instance  Model2 object
action  add
model  <class 'testproject.testapp.models.Model1'>
}}}
"		closed	Database layer (models, ORM)	dev		wontfix	signals, m2m_changed		Unreviewed	1	0	1	1	0	0
