Thanks for your help.
I used the
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display
method who work fine for me.
def url_as_link(self):
return '<a href="color: #%s;">%s</a>' % (self.url, self.url)
url_as_link.allow_tags = True
And call 'url_as_link' insted of 'url' in the ModelAdmin.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---