summaryrefslogtreecommitdiffstats
path: root/todolists
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 /todolists
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 'todolists')
-rw-r--r--todolists/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/todolists/models.py b/todolists/models.py
index 0627f833..b219ad6d 100644
--- a/todolists/models.py
+++ b/todolists/models.py
@@ -20,7 +20,7 @@ class Todolist(models.Model):
class Meta:
get_latest_by = 'created'
- def __unicode__(self):
+ def __str__(self):
return self.name
@property
@@ -72,7 +72,7 @@ class TodolistPackage(models.Model):
unique_together = (('todolist', 'pkgname', 'arch'),)
get_latest_by = 'created'
- def __unicode__(self):
+ def __str__(self):
return self.pkgname
def status_css_class(self):