📜  get_absolute_url django - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:34.385000             🧑  作者: Mango

代码示例1
def get_absolute_url(self):
  from django.core.urlresolvers import reverse
  return reverse('', kwargs={'pk': self.pk})