the ID is the primary key ID generated by django on models.

basically, it's not the syntax im having issue with, i think the
selected_id is being passed / parsed as a string not an intenger like
ID is.

J

On Sep 13, 12:45 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote:
> Hmm... What is `recordset`? QuerySet? QuerySet doesn't have id
> attribute.
> {% for recod in recodeset %}
>
> {% ifequal record.id selected_id %}
> <p>Selected!</p>
> {% endifequal %}
>
> {% endfor %}


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

Reply via email to