A ModelAdmin method returning bool is not formatted with an image
|Reported by:||romkyns||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Consider the following model admin:
class AppleAdmin(admin.ModelAdmin): list_display = ('has_something',) def has_something(self, apple): return apple.something != None
The "has_something" method returns a bool. When viewing this model through the list of "apples" in the admin, the "has_something" column will currently simply say "True/False", whereas a boolean that's actually part of the "apple" model will be formatted with a special graphic.
Trivial patch attached.