hi all and tank in advance for wasting your time; i'm very newby in
django framework

I have the following:



#views.py
...
def lista_diario(request, comm_id):
    comm_list =
Commessa.objects.all().annotate(oretot=Sum('diario__ore'))
    return render_to_response('commesse/lista_diario.html',
dict(comm_list=comm_list, zxc= comm_id ))

...
#lista_diario.html

...
{% for comm in comm_list %}

...
    {% if comm.id == zxc %}


             do something

     {% endif %}
...
{% endfor %}

the trouble is that the if condition is never TRUE, because comm.id
has its proper value, but zxc is empty.

any suggestione will be greatly appreciated.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to