Beispiel #1
0
class FormLaminas(forms.ModelForm):
    select = forms.IntegerField(widget=forms.Select(choices=default_choices_disp()), required=False)
    
    class Meta:
        model = Laminas
        fields = ['select'] + PROP_DISP
        localized_fields = '__all__'
Beispiel #2
0
class FormVarredura(forms.ModelForm):
    select = forms.IntegerField(widget=forms.Select(choices=default_choices_disp()), required=False)
    
    class Meta:
        model = Laminas
####          Fev 14, 2016 , não é preciso ver os valores dos campos.
#        fields = ['E1','E2','G12','NU12']
        fields = []
        localized_fields = '__all__'
class versoe_sArquivos(forms.Form):
    ######Para select lamina
    select = forms.IntegerField(
        widget=forms.Select(choices=default_choices_disp()), required=False)

    class Meta:
        model = Laminas
        fields = []
        localized_fields = '__all__'
##Para upload:

    docfile1 = forms.FileField(label='Indique um arquivo de Teste')