Opened 19 years ago
Closed 16 years ago
#1789 closed defect (fixed)
problem exists with list_detail.object_list generic view and subclassed models
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Generic views | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
A TemplateDoesNotExist exception occurs when using the object_list generic view with a Model that does not derive directly from models.Model. This is because it looks for <base model name>_list.html instead of <derived model name>_list.html.
Change History (4)
comment:1 by , 18 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:2 by , 18 years ago
Owner: | changed from | to
---|
I'm pretty sure this gets fixed for free with model inheritance. On a technical level, the problem at the moment is just that the wrong model manager is installed for the subclass. That is one of the things that is fixed by the model inheritance changes.
Let's leave this open for now and revisit when I check those changes in. I'm pretty sure we'll find out it goes away at that point.
comment:3 by , 18 years ago
Triage Stage: | Design decision needed → Accepted |
---|
model subclassing in not yet supported.