----- Original Message ----- From: "Ian Kelly" <[EMAIL PROTECTED]> To: <django-developers@googlegroups.com> Sent: Wednesday, March 05, 2008 2:18 PM Subject: Re: Pick a value from list variable in templates > Besides, it introduces a naming conflict. When I write {{ foo.__bar__ > }}, do I mean `getattr(foo, bar)`, or do I just want an attribute of > foo that happens to be named __bar__? >
Lookup in order, first check if foo has an attribute named __bar__, if not do `getattr(foo, bar)`, should avoid conflict. Just like the same way django lookup variables in templates. vcc _ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---