summaryrefslogtreecommitdiffstats
path: root/releng
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 /releng
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 'releng')
-rw-r--r--releng/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/releng/models.py b/releng/models.py
index afa0094b..c99052d3 100644
--- a/releng/models.py
+++ b/releng/models.py
@@ -30,7 +30,7 @@ class Release(models.Model):
get_latest_by = 'release_date'
ordering = ('-release_date', '-version')
- def __unicode__(self):
+ def __str__(self):
return self.version
def get_absolute_url(self):