summaryrefslogtreecommitdiff
path: root/pgweb/docs/models.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-19 18:48:47 +0000
committerMagnus Hagander2019-01-26 15:19:26 +0000
commita15682937549a22ffd65a88b67b94c498bf318c5 (patch)
treede5971ed14e51c34e7f2e286bf9a4896a0e8709f /pgweb/docs/models.py
parent7547b6f766106ba29c06ef1712330d771d1ca3de (diff)
Generic unicode updates
Diffstat (limited to 'pgweb/docs/models.py')
-rw-r--r--pgweb/docs/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pgweb/docs/models.py b/pgweb/docs/models.py
index 2e612417..89d32668 100644
--- a/pgweb/docs/models.py
+++ b/pgweb/docs/models.py
@@ -26,8 +26,8 @@ class DocPageAlias(models.Model):
file1 = models.CharField(max_length=64, null=False, blank=False, unique=True)
file2 = models.CharField(max_length=64, null=False, blank=False, unique=True)
- def __unicode__(self):
- return u"%s <-> %s" % (self.file1, self.file2)
+ def __str__(self):
+ return "%s <-> %s" % (self.file1, self.file2)
# XXX: needs a unique functional index as well, see the migration!
class Meta: