|
@ -3,7 +3,7 @@ from django.forms import ModelForm, DateField, ChoiceField, RadioSelect, Boolean |
|
|
from django.contrib.admin.widgets import AdminDateWidget |
|
|
from django.contrib.admin.widgets import AdminDateWidget |
|
|
from django.utils.html import format_html |
|
|
from django.utils.html import format_html |
|
|
|
|
|
|
|
|
from .models import Project, Volunteer, IFG, Library, TYPE_CHOICES, HonoraryCertificate |
|
|
|
|
|
|
|
|
from .models import Project, Volunteer, IFG, Library, TYPE_CHOICES, HonoraryCertificate, Travel |
|
|
from .settings import DATAPROTECTION, FOERDERRICHTLINIEN |
|
|
from .settings import DATAPROTECTION, FOERDERRICHTLINIEN |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +42,11 @@ class InternForm(ModelForm): |
|
|
model = Volunteer |
|
|
model = Volunteer |
|
|
exclude = ('granted', 'granted_date', 'survey_mail_send') |
|
|
exclude = ('granted', 'granted_date', 'survey_mail_send') |
|
|
|
|
|
|
|
|
|
|
|
class TravelForm(ModelForm): |
|
|
|
|
|
|
|
|
|
|
|
class Meta: |
|
|
|
|
|
model = Travel |
|
|
|
|
|
exclude = ('granted', 'granted_date', 'survey_mail_send', 'realname', 'email',) |
|
|
|
|
|
|
|
|
class LibraryForm(ModelForm): |
|
|
class LibraryForm(ModelForm): |
|
|
|
|
|
|
|
|