Hello,
I'm trying to build application based ond admin interface but here is
problem :)
If i create function that return html it is escaped when used in
list_filter

Example

class Deal(Model):
    owner = CharField(maxlength=64)
    bla bla ...


    def url_to_contract(self):
         return '<a href="/contracts/%i">%s</a>" % (self.id,self.owner)

   class Admin:
        list_filter = ( 'owner', 'url_to_contract')

And when page is rendered I'dont get html link only string "<a
href..and so on"
Is there way to disable escaping mode from list_filter without change
django sources ?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to