add signal when all models are loaded
|Reported by:||django@…||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||no|
Currently there is no signal when the models cache is fully populated.
I wrote a widget framework which loads widgets from the installed apps. Currently there is no hook to use to initialize additional models after all models are loaded. We run in many strange problems because the widgets may import models itself.
patch adds a modules_loaded signal which is fired after the AppCache populated the cache completely, allows many nice things to be done after the app started completly.
Change History (8)
Changed 6 years ago by django@…
comment:1 Changed 6 years ago by garcia_marc
- milestone changed from 1.0 alpha to post-1.0
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:4 Changed 6 years ago by ericholscher
- milestone set to post-1.0
- Needs documentation set
- Needs tests set
- Triage Stage changed from Unreviewed to Design decision needed