work
This commit is contained in:
parent
638ae328ea
commit
d2e6b65a12
8 changed files with 123 additions and 19 deletions
29
core/migrations/0007_approval.py
Executable file
29
core/migrations/0007_approval.py
Executable file
|
@ -0,0 +1,29 @@
|
|||
# Generated by Django 4.2.16 on 2024-12-03 12:41
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("core", "0006_berichtsheft_num"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="Approval",
|
||||
fields=[
|
||||
("id", models.AutoField(primary_key=True, serialize=False)),
|
||||
("user", models.TextField()),
|
||||
(
|
||||
"report",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="report",
|
||||
to="core.berichtsheft",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
]
|
18
core/migrations/0008_berichtsheft_needs_rewrite.py
Executable file
18
core/migrations/0008_berichtsheft_needs_rewrite.py
Executable file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.2.16 on 2024-12-03 12:44
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("core", "0007_approval"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="berichtsheft",
|
||||
name="needs_rewrite",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue