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
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
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
3 matches
Mail list logo