I really like the idea to add just a simple 'icon' attribute. That's quite elegant solution. Thanks, Mark! 🙂
On Monday, February 20, 2023 at 2:33:43 PM UTC+1 Jacob Rief wrote: > I agree with Adam Johnson that adding HTML to the model class is a bit too > coupled. > But I like the idea of Mark Niehues to add them to the ModelAdmin class, > although I would allow a HTML/SVG snippet rather than a CSS class. > > - How would we then handle 3rd party apps providing their own SVG file > to be used as icon? > - Shouldn't that icon definition be part of the ModelAdmin's Media > subclass? > > – Jacob > -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/45c143cc-2716-430a-93cf-7c2a938640ccn%40googlegroups.com.