Add file selector to snapshots
This commit is contained in:
parent
996f6a9f18
commit
e11749f187
6 changed files with 76 additions and 5 deletions
|
@ -0,0 +1,44 @@
|
|||
# Generated by Django 4.1.4 on 2022-12-21 08:53
|
||||
|
||||
import datetime
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("main", "0006_alter_category_options_alter_invoice_options_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="snapshot",
|
||||
name="file",
|
||||
field=models.FileField(
|
||||
blank=True,
|
||||
max_length=128,
|
||||
null=True,
|
||||
upload_to="snapshots/",
|
||||
validators=[django.core.validators.FileExtensionValidator(["pdf"])],
|
||||
verbose_name="Fichier",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="invoice",
|
||||
name="file",
|
||||
field=models.FileField(
|
||||
max_length=128,
|
||||
upload_to="invoices/",
|
||||
validators=[django.core.validators.FileExtensionValidator(["pdf"])],
|
||||
verbose_name="Fichier",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="snapshot",
|
||||
name="date",
|
||||
field=models.DateField(
|
||||
default=datetime.date.today, unique=True, verbose_name="Date"
|
||||
),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue