added tests for #23503
fixed #23503 -- fixed renaming of model with self-referential m2m field
added 1.7.1 release notes for #23503