Remove unused method

This commit is contained in:
Gabriel Augendre 2020-11-11 12:07:06 +01:00
parent 4d5e42b698
commit 48f9a2e468
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -61,13 +61,6 @@ class Article(AdminUrlMixin, models.Model):
type_ = "Page"
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):
return reverse("article-detail", kwargs={"slug": self.slug})