From e23206144b2528bf996551fe26160a1498f1e1df Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 29 Mar 2016 10:48:05 -0300 Subject: [PATCH] =?UTF-8?q?Ajusta=20bot=C3=A3o=20excluir=20na=20tela=20de?= =?UTF-8?q?=20editar=20parlamentar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parlamentares/forms.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/parlamentares/forms.py b/parlamentares/forms.py index 5ba68216d..9cee5a47d 100644 --- a/parlamentares/forms.py +++ b/parlamentares/forms.py @@ -75,7 +75,7 @@ class ParlamentaresForm (ModelForm): def __init__(self, *args, **kwargs): row1 = crispy_layout_mixin.to_row( - [('nome_parlamentar', 8), (InlineRadios('ativo'), 4)]) + [('nome_parlamentar', 8), ('ativo', 4)]) row2 = crispy_layout_mixin.to_row( [('nome_completo', 12)]) @@ -146,7 +146,6 @@ class ParlamentaresForm (ModelForm): """, ), row14, form_actions()) - ) super(ParlamentaresForm, self).__init__( *args, **kwargs) @@ -157,7 +156,6 @@ class ParlamentaresEditForm(ParlamentaresForm): def __init__(self, *args, **kwargs): super(ParlamentaresEditForm, self).__init__( *args, **kwargs) - self.helper.layout[0][-1:] = form_actions(more=[ HTML(' '), Submit('excluir', 'Excluir',