Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

from django import forms 

 

from .models import Erfa 

 

 

class SimpleFileUploadForm(forms.Form): 

 

docfile = forms.FileField( 

label='Select a file', 

help_text='max. 42 megabytes' 

) 

 

 

class ErfaSelectForm(forms.Form): 

erfa = forms.ModelChoiceField(queryset=Erfa.objects.filter(has_doppelmitgliedschaft=True), empty_label="Alle auswählen", required=False) 

 

 

class ErfaSelectFileUploadForm(SimpleFileUploadForm): 

 

erfa = forms.ModelChoiceField(queryset=Erfa.objects.filter(has_doppelmitgliedschaft=True), required=True) 

 

 

class ErfaSelectFormAll(forms.Form): 

erfa = forms.ModelChoiceField(queryset=Erfa.objects.all(), empty_label="Alle auswählen", required=False) 

 

 

class ErfaSelectFileUploadFormAll(SimpleFileUploadForm): 

 

erfa = forms.ModelChoiceField(queryset=Erfa.objects.all(), required=True)