Use readonly_fields:
class MyInline(admin.TabularInline):
model = MyModel
readonly_fields = ['link']
def link(self, obj):
url = reverse(...)
return mark_safe("<a href="https://stackoverflow.com/questions/9919780/%s">edit</a>" % url)
# the following is necessary if 'link' method is also used in list_display
link.allow_tags = True