From e313f9f7bd47881e781fc8dd0c2d28e8ac165a1c Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 9 Mar 2016 16:08:47 -0300 Subject: [PATCH] =?UTF-8?q?Refatora=20mais=20forms,=20removendo=20campos?= =?UTF-8?q?=20desnecess=C3=A1rios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- materia/forms.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/materia/forms.py b/materia/forms.py index baaf80076..ea32a2f69 100644 --- a/materia/forms.py +++ b/materia/forms.py @@ -110,22 +110,6 @@ class AcompanhamentoMateriaForm(ModelForm): class DocumentoAcessorioForm(ModelForm): - tipo = forms.ModelChoiceField( - label='Tipo', - required=True, - queryset=TipoDocumento.objects.all(), - empty_label='Selecione', - ) - - nome = forms.CharField( - label='Nome', required=True) - - autor = forms.CharField( - label='Autor', required=True) - - ementa = forms.CharField( - label='Ementa', required=True) - class Meta: model = DocumentoAcessorio fields = ['tipo', @@ -327,13 +311,6 @@ class LegislacaoCitadaForm(ModelForm): class NumeracaoForm(ModelForm): - tipo_materia = forms.ModelChoiceField( - label=_('Tipo de Matéria'), - required=True, - queryset=TipoMateriaLegislativa.objects.all(), - empty_label='Selecione', - ) - class Meta: model = Numeracao fields = ['tipo_materia',