It seems to me that either I don't understand at what stage this code should be executed, or this answer is no longer valid. I already tried this at class MyAppConfig(AppConfig)
as well as in migrations. @gasman, can you please explain when and where it should be executed?