Django templates use the dot syntax for several purposes: object
attributes, dictionary lookups, list indexes and method calls. Have a
look here:
http://www.djangoproject.com/documentation/templates/#variables

(note that you can't pass parameters to method calls so only methods
calls that don't require parameters are supported although I remember
seeing an extension on Django Snippets to get round this)

On Sep 25, 6:07 am, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote:
> On 25-Sep-07, at 10:23 AM, Oleg Korsak wrote:
>
> > Hello! I have many `tour` objects as a key for a `tour_dict`
> > dictionary.
> > How can I access tour_dict values using tour? Like tour_dict[tour]...
> > template will not work with [ ]
>
> how about tour_dict.tour?
>
> --
>
> regards
> kghttp://lawgon.livejournal.comhttp://nrcfosshelpline.in/web/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to