Currently the fields rendered out in the list view only contain the values. If I want to customize the rendering of a field based on the field name in an overridden neapolitan list template, there's no good way to do this without writing my own object_list templatetag.
For example, I have a status field that I want to render as a pretty badge because I like the way it looks, this isn't really possible since all I would be able to see is the field's value in the template (so "active", "inactive", etc.) and not the field's name.
Currently the fields rendered out in the list view only contain the values. If I want to customize the rendering of a field based on the field name in an overridden
neapolitan
list template, there's no good way to do this without writing my ownobject_list
templatetag.For example, I have a status field that I want to render as a pretty badge because I like the way it looks, this isn't really possible since all I would be able to see is the field's value in the template (so "active", "inactive", etc.) and not the field's name.
See this relevant commit for how this would look.
With the above commit, I can then just use something like this in my overridden template: