admin model travel has now datefields instead of datetimefields for checkin and checkout
This commit is contained in:
parent
29cdd7b653
commit
9200459028
2 changed files with 25 additions and 2 deletions
23
input/migrations/0090_auto_20221209_1720.py
Normal file
23
input/migrations/0090_auto_20221209_1720.py
Normal 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'),
|
||||
),
|
||||
]
|
|
@ -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:')
|
||||
|
|
Loading…
Reference in a new issue