Re: Template tag attribute lookup with abstracted variable

2008-11-22 Thread Andy Young
On Nov 21, 7:03 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > It is deliberate that Django's template language doesn't support > indirect attribute lookup. Helps to keep things simple (part of the > "keep programming out of templates" design goal). You're absolutely right about this, and I

Re: Template tag attribute lookup with abstracted variable

2008-11-21 Thread Malcolm Tredinnick
On Fri, 2008-11-21 at 12:06 -0800, Andy Young wrote: > I'm looking for an elegant way of stepping through my models from > within my template tags. > > I have 3 model classes chained by many-to-many relationships, viz > Category --> Item --> Detail. This model pertains to resume data, > e.g.,

Template tag attribute lookup with abstracted variable

2008-11-21 Thread Andy Young
I'm looking for an elegant way of stepping through my models from within my template tags. I have 3 model classes chained by many-to-many relationships, viz Category --> Item --> Detail. This model pertains to resume data, e.g., Category='Education', Item='Univ1', Detail='Biology coursework'.