Performing a getattr() style lookup in a django template
I ended up adding a method to the model in question, and that method can be accessed like an attribute in the template.
Still, i think it would be great if a built in tag allowed you to dynamically lookup an attribute, since this is a problem a lot of us constantly have in our templates.
Python's getattr() method is useful when you don't know the name of a certain attribute in advance.
This functionality would also come in handy in templates, but I've never figured out a way to do it. Is there a built-in tag or non-built-in tag that can perform dynamic attribute lookups?