Opened 15 months ago

Closed 15 months ago

Last modified 15 months 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.

Attachments (0)

Change History (2)

comment:1 Changed 15 months ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

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

comment:2 Changed 15 months ago by p0we7man@…

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

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.