Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21605 closed Bug (worksforme)

cached_property can't be used in ModelAdmin.list_display

Reported by: Germano Gabbianelli Owned by: nobody
Component: contrib.admin Version: 1.5
Severity: Normal Keywords:
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 have a Model with a cached_property, but if I try to use it with the ModelAdmin.list_display I get an ImproperlyConfigured Exception.
I think that if list_display supports properties it should support cached_properties too.

Change History (2)

comment:1 by Claude Paroz, 11 years ago

Resolution: worksforme
Status: newclosed

I cannot find right now the commit which fixed this, but this is working for me on Django 1.6.

comment:2 by Baptiste Mispelon, 11 years ago

Indeed, this was fixed in b88abd684041ffa66bfe445e1ac26164e803d488 as a fix for #19872.

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