1
0
Fork 0

admin model travel has now datefields instead of datetimefields for checkin and checkout

This commit is contained in:
Benni Bärmann 2022-12-09 17:25:41 +00:00
parent 3d591a39f7
commit a6defcb627
2 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,23 @@
# Generated by Django 3.1.2 on 2022-12-09 17:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('input', '0089_auto_20221209_1648'),
]
operations = [
migrations.AlterField(
model_name='travel',
name='checkin',
field=models.DateField(blank=True, null=True, verbose_name='Anreise'),
),
migrations.AlterField(
model_name='travel',
name='checkout',
field=models.DateField(blank=True, null=True, verbose_name='Abreise'),
),
]

View File

@ -186,8 +186,8 @@ class Travel(Extern):
transport = models.CharField(max_length=5, choices=TRANSPORT_CHOICES.items(), default='BAHN', verbose_name='Transportmittel:')
other_transport = models.CharField(max_length=200, null=True, blank=True, verbose_name='Sonstige Transportmittel (mit Begründung)')
travelcost = models.CharField(max_length=10, default="0", verbose_name='Fahrtkosten')
checkin = models.DateTimeField(blank=True, null=True, verbose_name='Anreise')
checkout = models.DateTimeField(blank=True, null=True, verbose_name='Abreise')
checkin = models.DateField(blank=True, null=True, verbose_name='Anreise')
checkout = models.DateField(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_travel_by = models.CharField(max_length=4, choices=PAYEDBY_CHOICES.items(), blank=True, null=True, verbose_name='Kostenauslage Fahrt durch')
hotel = models.CharField(max_length=10, choices=HOTEL_CHOICES.items(), verbose_name='Hotelzimmer benötigt:')