make invoice_date a datefield not a datetimefield

This commit is contained in:
Thomas Steen Rasmussen 2019-01-20 16:42:50 +01:00
parent d14708bee1
commit c93b38a98b
2 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,23 @@
# Generated by Django 2.1.3 on 2019-01-20 15:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('economy', '0005_auto_20190120_1532'),
]
operations = [
migrations.AlterField(
model_name='expense',
name='invoice_date',
field=models.DateField(blank=True, help_text='The invoice date for this Expense. This must match the invoice date on the documentation uploaded below.', null=True),
),
migrations.AlterField(
model_name='revenue',
name='invoice_date',
field=models.DateField(blank=True, help_text='The invoice date for this Revenue. This must match the invoice date on the documentation uploaded below.', null=True),
),
]

View File

@ -45,7 +45,7 @@ class Revenue(CampRelatedModel, UUIDModel):
upload_to='revenues/',
)
invoice_date = models.DateTimeField(
invoice_date = models.DateField(
help_text='The invoice date for this Revenue. This must match the invoice date on the documentation uploaded below.',
blank=True,
null=True,
@ -168,7 +168,7 @@ class Expense(CampRelatedModel, UUIDModel):
upload_to='expenses/',
)
invoice_date = models.DateTimeField(
invoice_date = models.DateField(
help_text='The invoice date for this Expense. This must match the invoice date on the documentation uploaded below.',
blank=True,
null=True,