summaryrefslogtreecommitdiff
path: root/app/resume
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2022-02-13 16:48:54 -0500
committerluxagraf <sng@luxagraf.net>2022-02-13 16:48:54 -0500
commit26a2d4a684db273ff707428e36911741a37532f2 (patch)
tree4f9c3665199516378aedd409aa896e7eb909fde4 /app/resume
parent26c7400f5651d36b84adb3971c09dcc0b275b004 (diff)
main: updated to django 4.0
Diffstat (limited to 'app/resume')
-rw-r--r--app/resume/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/resume/models.py b/app/resume/models.py
index 2161e88..bac3115 100644
--- a/app/resume/models.py
+++ b/app/resume/models.py
@@ -1,5 +1,5 @@
from django.db import models
-from django.utils.encoding import force_text
+from django.utils.encoding import force_str
from django.urls import reverse
from django.template.defaultfilters import slugify
@@ -46,7 +46,7 @@ class PubItem(models.Model):
return reverse("resume:detail", kwargs={"publisher": self.publisher.slug, "slug": self.slug})
def admin_link(self):
- return force_text('<a href="%s">Visit Site</a>' % (self.url))
+ return force_str('<a href="%s">Visit Site</a>' % (self.url))
admin_link.allow_tags = True
admin_link.short_description = 'Live Article'