From 26a2d4a684db273ff707428e36911741a37532f2 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 13 Feb 2022 16:48:54 -0500 Subject: main: updated to django 4.0 --- app/resume/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/resume') 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('Visit Site' % (self.url)) + return force_str('Visit Site' % (self.url)) admin_link.allow_tags = True admin_link.short_description = 'Live Article' -- cgit v1.2.3-70-g09d2