Sure, here it is. It's quite simple.

@register.filter
def show_actions(obj):
    ret = '''
<a href="/tasks/task/%s/execute">execute</a>
<a href="/tasks/task/%s/">edit</a>''' % (obj.id, obj.id)

    return ret

Kenneth Gonsalves:
> On 11-Apr-08, at 10:05 PM, Dmitriy Sodrianov wrote:
>
> > I have a custom filter that outputs some html code. The problem is
> > that it converts all "greater than" and "less than" symbols to
> > appropriate  &gt; and &lt; symbols. How is it possible to say to
> > filter not to do this?
>
> unless we see the code of the custom filter we could not give a solution
>
> --
>
> regards
> kg
> http://lawgon.livejournal.com
> http://nrcfosshelpline.in/code/
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to