make invoice_date a datefield not a datetimefield
This commit is contained in:
parent
d14708bee1
commit
c93b38a98b
23
src/economy/migrations/0006_auto_20190120_1642.py
Normal file
23
src/economy/migrations/0006_auto_20190120_1642.py
Normal 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),
|
||||
),
|
||||
]
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue