Fix m2m signal recognition issue on activities

Close #318.
Fix m2m_changed test issue
Refix
Merge pull request #325 from kawazrepos/m2m_on_activities

Fix m2m signal recognition issue on activities