@register.filter def link(object): return '%s' % (object.__class__.__name__.lower(), object.get_absolute_url(), object)