Update signal handling to work with the changes introduced in django r8223.