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|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
"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.