Re: template variables and looping with attributes

2006-01-22 Thread akaihola
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

template variables and looping with attributes

2006-01-21 Thread The Boss
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