Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#19654 closed Bug (worksforme)

Django provides false error message if ModelForm's model reference in Meta is nonexisting model

Reported by: p0we7man@… 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


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.

Change History (2)

comment:1 Changed 6 years ago by Claude Paroz

Resolution: worksforme
Status: newclosed

Thanks for the report, but this has already been improved in 1.5, probably due to [367bfaa5226eaae3278989e63f16063d5cc46cd8].

comment:2 Changed 6 years ago by p0we7man@…

That's great news! Looking forward to new Django release...

Note: See TracTickets for help on using tickets.
Back to Top