def METHOD_NAME(self) -> str:
    if not (self.object_id and self.content_type_id):
        return ""
    ct = self.content_type
    return reverse(
        f"admin:{ct.app_label}_{ct.model}_change", args=(self.object_id,)
    )