(self, instance)
return format_html('<a href="{}">{}</a>', url, _("Edit"))
Link to the admin page
Link to the admin page
Link to the admin page
def admin_link(self, instance):
        """Link to the admin page"""

        if not instance.pk:
            return ""

        url = edit_link(instance)
        return format_html('<a href="{}">{}</a>', url, _("Edit"))
def admin_link ( self , instance ) : if not instance . pk : return "" url = edit_link ( instance ) return format_html ( '<a href="{}">{}</a>' , url , _ ( "Edit" ) )