Opened 4 years ago

Closed 4 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


I used DetailView and subclassed it, then modified get_object to return a ModelForm instance. The bug and a workaround is described at

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.


Change History (3)

comment:1 Changed 4 years ago by kd4ttc

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 4 years ago by anonymous

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

comment:3 Changed 4 years ago by kd4ttc

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
Back to Top