summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorFrank Vanderham <fvanderham@ontracksconsulting.com>2018-04-22 14:14:23 -0600
committerJelle van der Waa <jelle@vdwaa.nl>2019-01-21 21:19:58 +0100
commit0ca04132d084ad510662f4c64a4fa8ef92d289da (patch)
treecf393b260b4fbedd8f7013964a78c8d9cd89888a /news
parent4dc419db90ee98ac5996f75c1bad8b99435a0302 (diff)
downloadarchweb-0ca04132d084ad510662f4c64a4fa8ef92d289da.tar.gz
archweb-0ca04132d084ad510662f4c64a4fa8ef92d289da.zip
Refactor Python 3 __unicode__ to __str__
In Python 3 for Django, class method __unicode__ must be changed to __str__. This commit replaces all models that use __unicode__ to __str__.
Diffstat (limited to 'news')
-rw-r--r--news/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/models.py b/news/models.py
index b413d17b..7e321f70 100644
--- a/news/models.py
+++ b/news/models.py
@@ -25,7 +25,7 @@ class News(models.Model):
def html(self):
return mark_safe(parse_markdown(self.content, not self.safe_mode))
- def __unicode__(self):
+ def __str__(self):
return self.title
class Meta: