Re: Nested template variable lookup

2011-05-19 Thread Tom Evans
On Thu, May 19, 2011 at 1:07 PM, Geoff Kuenning wrote: > Thanks, Tom, that was HUGELY helpful!  I had been thinking about using > a filter expression, but it's so much easier to have sample code. > > I have another question, though (not just for Tom).  The article Tom > linked to > (http://groups.

Re: Nested template variable lookup

2011-05-19 Thread Geoff Kuenning
Thanks, Tom, that was HUGELY helpful! I had been thinking about using a filter expression, but it's so much easier to have sample code. I have another question, though (not just for Tom). The article Tom linked to (http://groups.google.com/group/django-users/browse_thread/thread/ 6f4b7d95e4d0c81

Re: Nested template variable lookup

2011-05-18 Thread Tom Evans
On Wed, May 18, 2011 at 3:10 PM, Geoff Kuenning wrote: > I'm using Django 1.0.2, with plans to upgrade to 1.2.5 at some point. > >                {{ row.{{col.col_name}} }}       > > Am I up a creek?  Or is there some trick I'm missing here? > http://groups.google.com/group/django-users/browse_th

Nested template variable lookup

2011-05-18 Thread Geoff Kuenning
I'm using Django 1.0.2, with plans to upgrade to 1.2.5 at some point. I have an application that basically just displays the results of a database lookup as a table. In a fit of DRY-ism, I decided it would be cool if my application inspected the model to figure out what columns to display; that w