On Apr 28, 1:06 pm, Thierry <[EMAIL PROTECTED]> wrote: > is there any way to add links to the list view in the django admin? > I would like to links to some custom admin functionality, but it seems > quite hard to do :)
Here's example code to add to your Model: def my_link(self): from django.utils.safestring import mark_safe return mark_safe("<a href="/admin/some/url/">Link title</a>") my_link.short_description = "Click this" my_link.allow_tags = True In your Admin class' list_display, add 'my_link' -Rajesh D --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---