On 3/13/07, Panos Laganakos <[EMAIL PROTECTED]> wrote:
> then in the template file I try to:
> {% for tag in object.get_tag_list %} {{ tag.name }} {% endfor %}
The many-to-many relationship will set up an accessor 'tag_set' which
is a manager; the correct form in pure Python would be
for tag in object.tag_set.all():
print tag.name
And in a template:
{% for tag in object.tag_set.all %}
{{ tag.name }}
{% endfor %}
The get_*_list-style methods were removed in the migration from Django
0.91 to Django 0.95; check the current database API documentation on
djangoproject.com for information, and the "RemovingTheMagic" wiki
page for instructions on migrating a Django 0.91 codebase to Django
0.95.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---