summaryrefslogtreecommitdiff
path: root/app/resume/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/resume/models.py')
-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'