Fixed #23933 -- Made override_settings(DATABASE_ROUTERS) affect the master router.