def METHOD_NAME(self):
    if self.access_token:
        METHOD_NAME = reverse("blog_detail_public", args=[self.access_token])
    else:
        METHOD_NAME = reverse("blog_detail", args=[self.id])
    return METHOD_NAME