class SomeAdmin(admin.ModelAdmin):

    def the_method_in_modeladmin(self, obj):
        return ('<a href="#">link from the method of modeladmin for {0}</a>'
            .format(obj))
django admin: how to make a readonly url field clickable in change_form.html?