Thank you for your answer, actually I didn't know I can do this kind of
things* :D I'm not very familiar with the using of framework !*
Thank you for your help !
Le mercredi 13 février 2013 22:10:37 UTC+1, Daniel Roseman a écrit :
>
> 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.