diff --git a/src/economy/migrations/0006_auto_20190120_1642.py b/src/economy/migrations/0006_auto_20190120_1642.py new file mode 100644 index 00000000..8483a5f2 --- /dev/null +++ b/src/economy/migrations/0006_auto_20190120_1642.py @@ -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), + ), + ] diff --git a/src/economy/models.py b/src/economy/models.py index b50a422e..a2eb6531 100644 --- a/src/economy/models.py +++ b/src/economy/models.py @@ -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,