If the model has the get_absolute_url() method, there should automatically be a "Browse on site" button in the upper right corner of the admin information screen.
To view the list, you can easily add the method to the list of displayed fields:
class MyAdmin(admin.ModelAdmin): list_display=('name', 'anotherfield', 'show_url') def show_url(self, instance): return '<a href="%s">View on site</a>' % (instance.get_absolute_url()) show_url.allow_tags = True
Daniel Roseman
source share