You could define a filter "lookup":
from django.core.template import resolve_variable, Library
register = Library()
def lookup(value, arg):
return resolve_variable(arg, value)
register.filter(lookup)
and use it in your code like this:
{%for r in object_list %}
{%for c in field_lis
i am trying to make a table template similar to what i find for inline
editable modules in the admin interface.
I want to send a list of (same class) objects and fields of those
objects and then get a row for each object with a col for each desired
field. I thought this would be easy because it
2 matches
Mail list logo