feat: Add comments to adoption notices
This commit is contained in:
56
src/fellchensammlung/migrations/0002_comment.py
Normal file
56
src/fellchensammlung/migrations/0002_comment.py
Normal file
@@ -0,0 +1,56 @@
|
||||
# Generated by Django 5.0.6 on 2024-06-03 19:22
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("fellchensammlung", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="Comment",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
("text", models.TextField(verbose_name="Inhalt")),
|
||||
(
|
||||
"adoption_notice",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to="fellchensammlung.adoptionnotice",
|
||||
verbose_name="AdoptionNotice",
|
||||
),
|
||||
),
|
||||
(
|
||||
"reply_to",
|
||||
models.ForeignKey(
|
||||
blank=True,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to="fellchensammlung.comment",
|
||||
verbose_name="Antwort auf",
|
||||
),
|
||||
),
|
||||
(
|
||||
"user",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
to="fellchensammlung.member",
|
||||
verbose_name="Nutzer*in",
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user