Remove unused method
This commit is contained in:
parent
4d5e42b698
commit
48f9a2e468
1 changed files with 0 additions and 7 deletions
|
@ -61,13 +61,6 @@ class Article(AdminUrlMixin, models.Model):
|
||||||
type_ = "Page"
|
type_ = "Page"
|
||||||
return f"{self.title} ({type_})"
|
return f"{self.title} ({type_})"
|
||||||
|
|
||||||
def get_admin_url(self):
|
|
||||||
content_type = ContentType.objects.get_for_model(self.__class__)
|
|
||||||
return reverse(
|
|
||||||
"admin:%s_%s_change" % (content_type.app_label, content_type.model),
|
|
||||||
args=(self.id,),
|
|
||||||
)
|
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse("article-detail", kwargs={"slug": self.slug})
|
return reverse("article-detail", kwargs={"slug": self.slug})
|
||||||
|
|
||||||
|
|
Reference in a new issue