On 3/4/08, Collin Grady <[EMAIL PROTECTED]> wrote: > > > Luke Plant said the following: > > >> It is already in core. See: > >> http://www.djangoproject.com/documentation/templates/#variables > > > >No, it isn't - {{ foo.bar }} is the same as foo['bar'] not foo[bar], so > it won't > >do what they're talking about - they want to have a variable bar as, say, > 3, and > >have a way to do foo.bar where it's really doing foo.3 > > > >Hence the filter looking it up by the value of the variable, not as a > string.
Exactly. This seemed like such a basic concept (select from array based on variable value) that I was sure that it's hidden in django somewhere. I can't be the first one to need this? -Lauri --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---