Document side effects of importing uninstalled models
|Reported by:||ubernostrum||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
If a model is in an application not listed in INSTALLED_APPS, but is imported by some piece of code that's nonetheless in use, weird behavior can ensue (up to and including other models receiving reverse relations and thus erroring on delete operations when they try to select or delete from a non-existent related table).
This should be documented a bit more clearly, to ensure people don't trip over it.
Change History (6)
comment:1 Changed 6 years ago by brosner
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:2 Changed 4 years ago by SmileyChris
- Severity set to Normal
- Type set to Cleanup/optimization