def the_callable(obj):
    return '<a href="#">link from the callable for {0}</a>'.format(obj)
the_callable.allow_tags = True


class SomeAdmin(admin.ModelAdmin):
    pass
django admin: how to make a readonly url field clickable in change_form.html?