|
|
@ -96,11 +96,14 @@ class CargosComissaoOrdenacaoForm(forms.Form): |
|
|
) |
|
|
) |
|
|
posicao = forms.ChoiceField( |
|
|
posicao = forms.ChoiceField( |
|
|
label='Posição', |
|
|
label='Posição', |
|
|
required=True, |
|
|
required=True |
|
|
choices=choices_posicao() |
|
|
|
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
def __init__(self, *args, **kwargs): |
|
|
def __init__(self, *args, **kwargs): |
|
|
|
|
|
super(CargosComissaoOrdenacaoForm, self).__init__(**kwargs) |
|
|
|
|
|
|
|
|
|
|
|
self.fields['posicao'].choices = choices_posicao() |
|
|
|
|
|
|
|
|
row1 = to_row( |
|
|
row1 = to_row( |
|
|
[('cargo', 12)] |
|
|
[('cargo', 12)] |
|
|
) |
|
|
) |
|
|
@ -114,8 +117,6 @@ class CargosComissaoOrdenacaoForm(forms.Form): |
|
|
form_actions(label="Atualizar")) |
|
|
form_actions(label="Atualizar")) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
super().__init__(*args, **kwargs) |
|
|
|
|
|
|
|
|
|
|
|
def clean(self): |
|
|
def clean(self): |
|
|
super(CargosComissaoOrdenacaoForm, self).clean |
|
|
super(CargosComissaoOrdenacaoForm, self).clean |
|
|
|
|
|
|
|
|
|