From 8930a2576f2d99352a18685862dba893d6419561 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 30 Nov 2016 11:15:01 -0200 Subject: [PATCH] Fix fields --- sapl/materia/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index b8931102e..b337cb85e 100644 --- a/sapl/materia/views.py +++ b/sapl/materia/views.py @@ -1003,7 +1003,7 @@ class MateriaLegislativaCrud(Crud): if self.object.numeracao_set.all().count() > 1: string = ' - ' for n in self.object.numeracao_set.all(): - _str = n.numero + '/' + n.ano + ' - ' + _str = n.numero_materia + '/' + n.ano_materia + ' - ' string += _str data = {'text': string, @@ -1013,7 +1013,7 @@ class MateriaLegislativaCrud(Crud): elif self.object.numeracao_set.all().count() == 1: n = self.object.numeracao_set.first() - string = n.numero + '/' + n.ano + string = n.numero_materia + '/' + n.ano_materia data = {'text': string, 'span': 12, @@ -1021,7 +1021,6 @@ class MateriaLegislativaCrud(Crud): 'id': 'processo'} context['view'].layout_display[0]['rows'].insert(3, data) - import ipdb; ipdb.set_trace() return context @property