Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs #23933.