Opened 13 years ago

Closed 13 years ago

#16405 closed Bug (duplicate)

Class based generic DetailView tries to access non-existant _meta field when get_object has been modified to return a ModelForm

Reported by: sholland@… Owned by: nobody
Component: Generic views Version: 1.3
Severity: Normal Keywords: ModelForm DetailView
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I used DetailView and subclassed it, then modified get_object to return a ModelForm instance. The bug and a workaround is described at http://stackoverflow.com/q/6564068/820321

A workaround is noted. I'd offer a patch, but don't fully understand the fields that are expected. I'd be happy to help make up a patch.

Steve

Change History (3)

comment:1 by kd4ttc, 13 years ago

comment:2 by anonymous, 13 years ago

Figured out how to log in. Initially submitted by me, Steve, KD4TTC

comment:3 by kd4ttc, 13 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top