|
@ -15,7 +15,7 @@ class ProjectForm(ModelForm): |
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|
model = Project |
|
|
model = Project |
|
|
exclude = ('pid', 'granted', 'granted_date', 'realname', 'email', 'project_end_mail', 'survey_mail_send') |
|
|
|
|
|
|
|
|
exclude = ('pid', 'granted', 'granted_date', 'realname', 'email', 'end_mail_send', 'survey_mail_send') |
|
|
widgets = {'start': AdminDateWidget(), |
|
|
widgets = {'start': AdminDateWidget(), |
|
|
'end': AdminDateWidget(),} |
|
|
'end': AdminDateWidget(),} |
|
|
|
|
|
|
|
@ -32,12 +32,12 @@ class ExternForm(ModelForm): |
|
|
model = Extern |
|
|
model = Extern |
|
|
exclude = ('granted', 'granted_date', 'survey_mail_send') |
|
|
exclude = ('granted', 'granted_date', 'survey_mail_send') |
|
|
|
|
|
|
|
|
INTERN_CHOICES = [('PRO', 'Projektsteckbrief'), |
|
|
|
|
|
('HON', 'Ehrenamtsbescheinigung, Akkreditierung oder Redaktionsbestätigung'), |
|
|
|
|
|
('TRAV', 'Reisekostenerstattung')] |
|
|
|
|
|
|
|
|
INTERN_CHOICES = {'PRO': 'Projektsteckbrief', |
|
|
|
|
|
'HON': 'Ehrenamtsbescheinigung, Akkreditierung oder Redaktionsbestätigung', |
|
|
|
|
|
'TRAV': 'Reisekostenerstattung'} |
|
|
|
|
|
|
|
|
class InternForm(ModelForm): |
|
|
class InternForm(ModelForm): |
|
|
choice = ChoiceField(choices = INTERN_CHOICES, widget=RadioSelect, |
|
|
|
|
|
|
|
|
choice = ChoiceField(choices = INTERN_CHOICES.items(), widget=RadioSelect, |
|
|
label = 'Was möchtest Du eingeben?') |
|
|
label = 'Was möchtest Du eingeben?') |
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|