#19654 closed Bug (worksforme)
Django provides false error message if ModelForm's model reference in Meta is nonexisting model
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.4 |
Severity: | Normal | Keywords: | error reporting disinformation |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The message
"Could not import education.views.initial_setup. View does not exist in module education.views" appears if model in Meta class references nonexistence model in existing module. The education.views module includes file with mentioned above incorrect ModelForm definition and this results in such disinformating error message. It took me about 12 hours to track down real cause of the error by trying different URLConfs of this function and commenting out parts of the sources.
Note:
See TracTickets
for help on using tickets.
Thanks for the report, but this has already been improved in 1.5, probably due to [367bfaa5226eaae3278989e63f16063d5cc46cd8].