Opened 12 years ago

Closed 12 years ago

Last modified 12 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

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.

Change History (2)

comment:1 by Claude Paroz, 12 years ago

Resolution: worksforme
Status: newclosed

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

comment:2 by p0we7man@…, 12 years ago

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

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