On Wednesday, 13 February 2013 03:52:20 UTC-8, Olivier wrote:
> But before including template ( tasklist-one.html ) I would like to call a
> function which take the tasklist_id and look for the task which compose
> the tasklist.
>
Why? You don't show your models, which would have been useful, but
presumably there's a ForeignKey from Task to Tasklist. So instead of
passing the tasklist ID to the child template, just pass the actual
tasklist object, then you can refer to the tasks via the reverse
relationship: {{ tasklist.task_set.all }}
--
DR.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.