2023-04-10 13:12:45 -04:00
|
|
|
# Generated by Django 4.2 on 2023-04-10 05:34
|
|
|
|
|
|
|
|
import datetime
|
2024-01-17 21:17:24 -05:00
|
|
|
|
|
|
|
import django.db.models.deletion
|
2023-04-10 13:12:45 -04:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
("paperwork", "0011_alter_certificationversion_options"),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="WaiverAudit",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("date", models.DateField(default=datetime.date.today, unique=True)),
|
|
|
|
("good", models.BooleanField(default=False)),
|
|
|
|
("notes", models.CharField(blank=True, max_length=255)),
|
|
|
|
(
|
|
|
|
"user",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"waiver",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="audits",
|
|
|
|
to="paperwork.waiver",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
"ordering": ["date"],
|
|
|
|
"get_latest_by": ["date"],
|
|
|
|
"abstract": False,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="CertificationAudit",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("date", models.DateField(default=datetime.date.today, unique=True)),
|
|
|
|
("good", models.BooleanField(default=False)),
|
|
|
|
("notes", models.CharField(blank=True, max_length=255)),
|
|
|
|
(
|
|
|
|
"certification",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
related_name="audits",
|
|
|
|
to="paperwork.certification",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"user",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
"ordering": ["date"],
|
|
|
|
"get_latest_by": ["date"],
|
|
|
|
"abstract": False,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|