__getitem__ and lookups in templates

2009-08-31 Thread efege
Hi, According to the docs, "... when the template system encounters a dot in a variable name, it tries the following lookups, in this order: * Dictionary lookup. Example: foo["bar"] * Attribute lookup. Example: foo.bar * Method call. Example: foo.bar() * List-index lookup. Examp

Context problem - From list to details and back

2008-03-07 Thread efege
Hi, I'm new to Django and Python too, and just started planning the migration of an existing app to Django, after reading (though not very carefully) The Definitive Guide to Django. Excellent documentation, BTW! I'd like to know which is the recommended approach to handle this situation in Django