Good Afternoon,
How can I use a variable variable name in Django templates?
I have a custom auth system using context, has_perm che
context
has_perm
You can try like this,
{{ dict|key:key_name }}
Filter:
def key(d, key_name): return d[key_name] key = register.filter('key', key)
More information, django ticket