#25984 closed Cleanup/optimization (fixed)
Incorrect error message in ModelBase.__new__
Reported by: | Marten Kenbeek | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.9 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
The RuntimeError in ModelBase.__new__
says:
... or else was imported before its application was loaded.
In 1.9 all applications have to be loaded before you can import any models, otherwise an AppRegistryNotReady
exception is raised before this error is reached. This error is only reached if the app is not in INSTALLED_APPS
. The message should be changed to reflect that.
Change History (5)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 9 years ago
Has patch: | set |
---|
comment:4 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 692d0558: