Opened 18 years ago

Closed 16 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: 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 Gary Wilson <gary.wilson@…>, 17 years ago

Triage Stage: UnreviewedDesign decision needed

model subclassing in not yet supported.

comment:2 by Malcolm Tredinnick, 17 years ago

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 by Malcolm Tredinnick, 17 years ago

Triage Stage: Design decision neededAccepted

comment:4 by Matt McClanahan, 16 years ago

Resolution: fixed
Status: newclosed

Indeed it did.

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