PetrDlouhy / django-related-admin

Allow foreign key attributes in list_display with '__'
BSD 3-Clause "New" or "Revised" License
69 stars 13 forks source link

Boolean #2

Closed ricardobfreitas closed 7 years ago

ricardobfreitas commented 8 years ago

Boolean attributes appears as "True" os "False" instead of the "check icon" in Admin. Is it possible to show the "check icon" using the django-related-admin? How? Thanks! (Sorry for the english!)

PetrDlouhy commented 7 years ago

This is now possible to achieve by following code in ModelAdmin:

user__active = getter_for_related_field('user__active', boolean=True)