@register.simple_tag
def attributeLookup(the_object, attribute_name):
    return getattr(the_object, attribute_name, None)
How do I access dictionary keys that contain hyphens from within a Django template?