Re: varible reference in template problem

2008-10-06 Thread Daniel Roseman
On Oct 6, 12:46 pm, Stephen Cheng <[EMAIL PROTECTED]> wrote: > Hi django friends > > I got a problem with varible reference in template. the case is like > this: > > I pass a map to a template, I am trying to get map[key], in the case > the key= modelA.id, then I have to use map.modelA.id, then it

varible reference in template problem

2008-10-06 Thread Stephen Cheng
Hi django friends I got a problem with varible reference in template. the case is like this: I pass a map to a template, I am trying to get map[key], in the case the key= modelA.id, then I have to use map.modelA.id, then it won't work. How can I conquer this? Can I assign modelA.id to another v