From 636929d47434e06e890acdaf38722afdff18e0a0 Mon Sep 17 00:00:00 2001 From: Felipe Vieira Date: Tue, 6 Dec 2011 19:39:46 +0000 Subject: [PATCH] ajustando bug de encoding --- sigi/apps/diagnosticos/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sigi/apps/diagnosticos/models.py b/sigi/apps/diagnosticos/models.py index d7c4338..d8d33f1 100644 --- a/sigi/apps/diagnosticos/models.py +++ b/sigi/apps/diagnosticos/models.py @@ -114,7 +114,7 @@ class Diagnostico(BaseEntity): return Pergunta.objects.all() def __unicode__(self): - return str(self.casa_legislativa) + return str(self.casa_legislativa).decode('utf8') def get_absolute_url(self): return "/diagnosticos/diagnostico/%i/" % (self.id, )