📅  最后修改于: 2022-03-11 14:45:14.529000             🧑  作者: Mango
代码示例3
from django.urls import reverse
def get_absolute_url(self):
return reverse("show_article", kwargs={"slug": self.slug})