From fb41334b5d729d9258a2e5bfe08271cd30b1efc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Marti=CC=81n?= Date: Sat, 31 Jan 2015 13:38:59 +0100 Subject: [PATCH] Added utf-8 encoding to wishlist/have repr() --- shelfzilla/apps/manga/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shelfzilla/apps/manga/models.py b/shelfzilla/apps/manga/models.py index f7a0c2a..5f70fd6 100644 --- a/shelfzilla/apps/manga/models.py +++ b/shelfzilla/apps/manga/models.py @@ -290,9 +290,9 @@ class UserWishlistVolume(models.Model): def __unicode__(self): return "{} {} {}".format( - self.user.username, + self.user.username.encode('utf-8'), _('wants'), - self.volume + self.volume.encode('utf-8'), ) class Meta: @@ -318,9 +318,9 @@ class UserReadVolume(models.Model): def __unicode__(self): return "{} {} {}".format( - self.user.username, + self.user.username.encode('utf-8'), _('have read'), - self.volume + self.volume.encode('utf-8'), ) class Meta: