Silent error in ModelAdmin.list_display callables...
|Reported by:||jedie||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Errors in ModelAdmin.list_display callables would be ignored.
I suspect not only a AttributeError.
class FooAdmin(admin.ModelAdmin): list_display = ('foobar',) def foobar(self, obj): raise AttributeError # ignored!
Change History (9)
Changed 5 years ago by jedie
comment:1 Changed 5 years ago by jedie
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 follow-up: ↓ 4 Changed 5 years ago by aaugustin
- Triage Stage changed from Unreviewed to Design decision needed
comment:3 Changed 5 years ago by aaugustin
- Needs tests set
- Triage Stage changed from Design decision needed to Accepted