Fix unique date field on snapshots
This commit is contained in:
parent
2ac316aaca
commit
7d0ed1dd5a
2 changed files with 20 additions and 1 deletions
19
nummi/main/migrations/0012_alter_snapshot_date.py
Normal file
19
nummi/main/migrations/0012_alter_snapshot_date.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Generated by Django 4.1.4 on 2022-12-29 18:22
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0011_alter_category_user_alter_invoice_user_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="snapshot",
|
||||
name="date",
|
||||
field=models.DateField(default=datetime.date.today, verbose_name="Date"),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue