Browse Source

ajustando bug de encoding

diagnosticos
Felipe Vieira 13 years ago
parent
commit
636929d474
  1. 2
      sigi/apps/diagnosticos/models.py

2
sigi/apps/diagnosticos/models.py

@ -114,7 +114,7 @@ class Diagnostico(BaseEntity):
return Pergunta.objects.all() return Pergunta.objects.all()
def __unicode__(self): def __unicode__(self):
return str(self.casa_legislativa) return str(self.casa_legislativa).decode('utf8')
def get_absolute_url(self): def get_absolute_url(self):
return "/diagnosticos/diagnostico/%i/" % (self.id, ) return "/diagnosticos/diagnostico/%i/" % (self.id, )

Loading…
Cancel
Save