#9998 closed Cleanup/optimization (wontfix)
Document side effects of importing uninstalled models
Reported by: | James Bennett | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.0 |
Severity: | Normal | Keywords: | app-loading |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → Cleanup/optimization |
comment:3 by , 13 years ago
UI/UX: | unset |
---|
comment:5 by , 11 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The ability to do this has been deprecated in Django 1.7 and will be disallowed in Django 1.9 -- some documentation has been added about that; see #21680. I'm going to close this ticket since it hasn't been touched in 5 years.
comment:6 by , 11 years ago
Keywords: | app-loading added |
---|
Change UI/UX from NULL to False.