Friday, March 30, 2012

Re: comparing custom template tag within if tag

On Thu, Mar 29, 2012 at 5:42 PM, Nikhil Verma <varma.nikhil22@gmail.com> wrote:
> Hi All
>
> I am still not able to solve this problem .Any more suggestions ?
>
> Thanks
>

Because there is no solution. You must rewrite the custom tag to set a
variable in the context, which you can then test in your 'if' tag.

The link in my first email explains how to do that.

Cheers

Tom

--
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 unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment