Opened 11 years ago

Closed 8 years ago

#1789 closed defect (fixed)

problem exists with list_detail.object_list generic view and subclassed models

Reported by: charlie.sheppard@… 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: UI/UX:

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 Changed 10 years ago by Gary Wilson <gary.wilson@…>

Triage Stage: UnreviewedDesign decision needed

model subclassing in not yet supported.

comment:2 Changed 10 years ago by Malcolm Tredinnick

Owner: changed from Jacob to Malcolm Tredinnick

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 Changed 10 years ago by Malcolm Tredinnick

Triage Stage: Design decision neededAccepted

comment:4 Changed 8 years ago by Matt McClanahan

Resolution: fixed
Status: newclosed

Indeed it did.

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