Thanks for the help Daniel.
I think I'm making some progress now :-)
--~--~-~--~~~---~--~~
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 unsubsc
On Aug 19, 11:59 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Daniel,
>
> I am working my way
> throughhttp://www.djangoproject.com/documentation/db-api/#related-objects
> at the moment trying to get a better grasp on how django handles SQL
> relationships.
>
> The way I got the above cod
Found the solution to:
{% for taskUpdate in object.taskUpdate_set.all %}
{{ taskUpdate.comment }}
{% endfor %}
Djando lowercases model names when used in templates. But still I had
to call it object.taskupdate_set.all and not task.taskupdate.set_all
--~--~-~--~~~-
Daniel,
I am working my way through
http://www.djangoproject.com/documentation/db-api/#related-objects
at the moment trying to get a better grasp on how django handles SQL
relationships.
The way I got the above code to work was (following your suggestion):
{% for task in object.task_set.all %}
On Aug 19, 9:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Daniel,
>
> Thank you for your reply.
>
> Following your advice I tried the following:
>
> task is the model that relates to project.
>
>
> {% for task in project.task.all %}
> {{ task.title }}
> {% endfor %}
>
>
> It doesn't s
My mistake, I must have made a typo as it is now working perfectly.
Thanks Daniel!
--~--~-~--~~~---~--~~
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.
Daniel,
Thank you for your reply.
Following your advice I tried the following:
task is the model that relates to project.
{% for task in project.task.all %}
{{ task.title }}
{% endfor %}
It doesn't show anything so I think I'm confusing my models. Am I
missing something obvious ? I am only
On Aug 19, 7:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> My urls.py looks like this:
>
> project_info = {
> "queryset" : project.objects.all(),
>
> }
>
> (r'^project/(?P[-\w]+)/',
> login_required(list_detail.object_detail), dict(project_info,
> slug_field='slug')),
>
> Projects ha
8 matches
Mail list logo