Re: Using {% ifequal %} in my template is not working

2007-11-10 Thread Greg
Thanks Ivan, I've got it working however I did something different. I just put str() around my query and it works. So instead of request.session['info'].update(shape=ProductShape.objects.get(id=request['shape'])) I used: request.session['info'].update(shape=str(ProductShape.objects.get(id=req

Re: Using {% ifequal %} in my template is not working

2007-11-10 Thread Ivan Sagalaev
Greg wrote: > request.session['info'].update(shape=ProductShape.objects.get(id=request['shape'])) > return render_to_response('search.htm', {'pinfo': > request.session['info']} This might be because of your first line here doesn't work as expected. Session is not exactly a dict and one of the th

Using {% ifequal %} in my template is not working

2007-11-09 Thread Greg
Hello, I'm not sure what is going on here. In my template I have the following code: {% ifequal pinfo.shape "Round" %}Its Round{% else %}{{ pinfo.shape }} {% endifequal %} Everytime I run this code it goes directly to the else statement and {{ pinfo.material }} prints out Round. I'm not sure w