From 075f15d885c9e34af8e8290b8eabe817eb45bc02 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Fri, 17 Jul 2015 20:04:44 -0300 Subject: [PATCH] Fix SessaoLegislativa to print name instead of value --- parlamentares/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parlamentares/models.py b/parlamentares/models.py index 39cb7e09a..2295e38ad 100644 --- a/parlamentares/models.py +++ b/parlamentares/models.py @@ -43,7 +43,7 @@ class SessaoLegislativa(models.Model): verbose_name_plural = _('Sessões Legislativas') def __str__(self): - return self.tipo + return self.get_tipo_display() class Coligacao(models.Model):