|
@ -173,6 +173,10 @@ TRANSPORT_CHOICES = {'BAHN': 'Bahn', |
|
|
PAYEDBY_CHOICES = {'WMDE': 'WMDE', |
|
|
PAYEDBY_CHOICES = {'WMDE': 'WMDE', |
|
|
'REQU': 'Antragstellender Mensch'} |
|
|
'REQU': 'Antragstellender Mensch'} |
|
|
|
|
|
|
|
|
|
|
|
HOTEL_CHOICES = {'TRUE': format_html('Hotelzimmer benötigt'), |
|
|
|
|
|
'FALSE': format_html('Kein Hotelzimmer benötigt') |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
from django.contrib.contenttypes.models import ContentType |
|
|
from django.contrib.contenttypes.models import ContentType |
|
|
|
|
|
|
|
|
class Travel(Volunteer): |
|
|
class Travel(Volunteer): |
|
@ -186,7 +190,7 @@ class Travel(Volunteer): |
|
|
checkout = models.DateTimeField(blank=True, null=True, verbose_name='Abreise') |
|
|
checkout = models.DateTimeField(blank=True, null=True, verbose_name='Abreise') |
|
|
payed_for_hotel_by = models.CharField(max_length=4, choices=PAYEDBY_CHOICES.items(), blank=True, null=True, verbose_name='Kostenauslage Hotel durch') |
|
|
payed_for_hotel_by = models.CharField(max_length=4, choices=PAYEDBY_CHOICES.items(), blank=True, null=True, verbose_name='Kostenauslage Hotel durch') |
|
|
payed_for_travel_by = models.CharField(max_length=4, choices=PAYEDBY_CHOICES.items(), blank=True, null=True, verbose_name='Kostenauslage Fahrt durch') |
|
|
payed_for_travel_by = models.CharField(max_length=4, choices=PAYEDBY_CHOICES.items(), blank=True, null=True, verbose_name='Kostenauslage Fahrt durch') |
|
|
hotel = models.BooleanField(default=False, verbose_name='Hotelzimmer benötigt:') |
|
|
|
|
|
|
|
|
hotel = models.CharField(max_length=10, choices=HOTEL_CHOICES.items(), verbose_name='Hotelzimmer benötigt:') |
|
|
notes = models.TextField(max_length=1000, blank=True, verbose_name='Anmerkungen') |
|
|
notes = models.TextField(max_length=1000, blank=True, verbose_name='Anmerkungen') |
|
|
request_url = models.URLField(max_length=2000, verbose_name='Antrag (URL)') |
|
|
request_url = models.URLField(max_length=2000, verbose_name='Antrag (URL)') |
|
|
intern_notes = models.TextField(max_length=1000, blank=True, verbose_name='interne Anmerkungen') |
|
|
intern_notes = models.TextField(max_length=1000, blank=True, verbose_name='interne Anmerkungen') |
|
|