From c6b6002ee832c91531d91d3975404c403bd55773 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 6 Dec 2020 17:15:44 +0100 Subject: [PATCH] Remove unused code --- articles/models.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/articles/models.py b/articles/models.py index 5a7e5ab..6119f04 100644 --- a/articles/models.py +++ b/articles/models.py @@ -6,14 +6,12 @@ import markdown from django.contrib.auth.models import AbstractUser from django.contrib.contenttypes.models import ContentType from django.db import models -from django.http import HttpRequest from django.template.defaultfilters import slugify from django.urls import reverse from django.utils import timezone from markdown.extensions.codehilite import CodeHiliteExtension from articles.markdown import LazyLoadingImageExtension -from articles.utils import build_full_absolute_url class User(AbstractUser): @@ -67,10 +65,6 @@ class Article(AdminUrlMixin, models.Model): def get_absolute_url(self): return reverse("article-detail", kwargs={"slug": self.slug}) - def get_full_absolute_url(self, request: HttpRequest = None): - url = self.get_absolute_url() - return build_full_absolute_url(request, url) - def get_abstract(self): html = self.get_formatted_content() return html.split("")[0]