Fix pep8 violation in migration template.
Fixed #21952 -- signals deadlock due to locking + weakref interaction
Simplified signal code.

Refs #21952
Fixed gendered examples in the docs.
Extended the release notes for chainable Manager/QuerySet methods.

Refs #20625.