With this

    <dt><b>Team:</b>
    {% for team in object.squad.team_set.all  %}
        {% appearance_count_for_team team.id %}

and

class AppearanceCountForTeamNode(template.Node):
    def __init__(self, team_id):
        print team_id
        ...

I get "team.id" printed out and not the id of the team.
Why doesn't it get evaluated? I don't understand this.

Greetings
Kai

--~--~---------~--~----~------------~-------~--~----~
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