If I have a list of objects that require similar layouts but need some attribute set based on the class of object how can I go about getting the class name while class>
David's suggestion of a custom filter is great if you need this for several classes.
The Django docs neglect to mention that the dev server won't detect new templatetags automatically, however, so until I restarted it by hand I was stuck with a TemplateSyntaxError class_tag is not a registered tag library
.
.