Tim Shaffer wrote:
> I haven't tested this at all, but maybe try putting all the tagging
> stuff, include {% load tagging_tags %}, in a separate template, then
> wrapping the if statement around an include for that template:
>
> {% if object.tags %}
> {% include "tag_stuff.html" %}
> {% endif %}
>
> Like I said, I haven't tested this, so it might suffer from the same
> symptoms.
>
It absolutely does. I get the same result if I break it down into
separate templates.
In the mean time, I've journeyed the "path of least resistance" and
simply created a class method that basically does what the template tag
would have done. This gets me the same output, without having to {%
load %} anything in my template.
Still... I'm curious as to why this is happening.
--
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.