Snapshot table
This commit is contained in:
parent
a3797bb7fb
commit
15a317dc0f
7 changed files with 87 additions and 8 deletions
|
@ -0,0 +1,30 @@
|
|||
# Generated by Django 4.0.4 on 2022-05-22 06:43
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0010_alter_snapshot_previous"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="snapshot",
|
||||
options={"ordering": ["-date"]},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="snapshot",
|
||||
name="diff",
|
||||
field=models.DecimalField(
|
||||
decimal_places=2, default=0, editable=False, max_digits=12
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="snapshot",
|
||||
name="date",
|
||||
field=models.DateField(default=datetime.date.today, unique=True),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue