From 9200459028f9c577461df17815e20cc410e23272 Mon Sep 17 00:00:00 2001 From: alpcentaur Date: Mon, 27 Feb 2023 17:09:29 +0000 Subject: [PATCH] admin model travel has now datefields instead of datetimefields for checkin and checkout --- input/migrations/0090_auto_20221209_1720.py | 23 +++++++++++++++++++++ input/models.py | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 input/migrations/0090_auto_20221209_1720.py diff --git a/input/migrations/0090_auto_20221209_1720.py b/input/migrations/0090_auto_20221209_1720.py new file mode 100644 index 0000000..440811b --- /dev/null +++ b/input/migrations/0090_auto_20221209_1720.py @@ -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'), + ), + ] diff --git a/input/models.py b/input/models.py index d57d599..fa336a4 100755 --- a/input/models.py +++ b/input/models.py @@ -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:')