From d082c9e1cd2dda4ee625ca8ad15e7659e5582615 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 30 Nov 2016 11:20:17 -0200 Subject: [PATCH] Fix strings --- sapl/materia/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index b337cb85e..6941ee040 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1003,7 +1003,8 @@ class MateriaLegislativaCrud(Crud): if self.object.numeracao_set.all().count() > 1: string = ' - ' for n in self.object.numeracao_set.all(): - _str = n.numero_materia + '/' + n.ano_materia + ' - ' + _str = str(n.numero_materia) + '/' + str( + n.ano_materia) + ' - ' string += _str data = {'text': string, @@ -1013,7 +1014,7 @@ class MateriaLegislativaCrud(Crud): elif self.object.numeracao_set.all().count() == 1: n = self.object.numeracao_set.first() - string = n.numero_materia + '/' + n.ano_materia + string = str(n.numero_materia) + '/' + str(n.ano_materia) data = {'text': string, 'span': 12,