2024-06-08 10:32:57 +00:00
|
|
|
# Generated by Django 5.0.6 on 2024-06-08 10:13
|
2024-03-20 08:19:58 +00:00
|
|
|
|
|
|
|
import datetime
|
2024-04-07 09:33:41 +00:00
|
|
|
import django.contrib.auth.models
|
|
|
|
import django.contrib.auth.validators
|
2024-03-20 08:19:58 +00:00
|
|
|
import django.db.models.deletion
|
2024-04-07 09:33:41 +00:00
|
|
|
import django.utils.timezone
|
2024-03-23 21:20:31 +00:00
|
|
|
import uuid
|
2024-03-20 08:19:58 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
2024-04-14 11:26:41 +00:00
|
|
|
("auth", "0012_alter_user_first_name_max_length"),
|
2024-03-20 08:19:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2024-05-31 14:25:50 +00:00
|
|
|
migrations.CreateModel(
|
|
|
|
name="Text",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("title", models.CharField(max_length=100)),
|
|
|
|
("content", models.TextField(verbose_name="Inhalt")),
|
|
|
|
(
|
|
|
|
"text_code",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, max_length=24, verbose_name="Text code"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
"verbose_name": "Text",
|
|
|
|
"verbose_name_plural": "Texte",
|
|
|
|
},
|
|
|
|
),
|
2024-03-23 21:20:31 +00:00
|
|
|
migrations.CreateModel(
|
2024-04-14 11:26:41 +00:00
|
|
|
name="Image",
|
2024-03-23 21:20:31 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("image", models.ImageField(upload_to="images")),
|
|
|
|
("alt_text", models.TextField(max_length=2000)),
|
2024-03-23 21:20:31 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2024-04-14 11:26:41 +00:00
|
|
|
name="Language",
|
2024-03-23 21:20:31 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"name",
|
|
|
|
models.CharField(
|
|
|
|
help_text="Der Name einer natürliche Sprache wie Deutsch, Englisch oder Arabisch.",
|
|
|
|
max_length=200,
|
|
|
|
unique=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"languagecode",
|
|
|
|
models.CharField(
|
|
|
|
help_text="Der standartisierte Sprachcode. Mehr Informationen: http://www.i18nguy.com/unicode/language-identifiers.html",
|
|
|
|
max_length=10,
|
|
|
|
verbose_name="Sprachcode",
|
|
|
|
),
|
|
|
|
),
|
2024-03-23 21:20:31 +00:00
|
|
|
],
|
|
|
|
options={
|
2024-04-14 11:26:41 +00:00
|
|
|
"verbose_name": "Sprache",
|
|
|
|
"verbose_name_plural": "Sprachen",
|
2024-03-23 21:20:31 +00:00
|
|
|
},
|
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
migrations.CreateModel(
|
2024-04-14 11:26:41 +00:00
|
|
|
name="Location",
|
2024-03-20 08:19:58 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
2024-05-31 14:25:50 +00:00
|
|
|
("place_id", models.IntegerField()),
|
|
|
|
("latitude", models.FloatField()),
|
|
|
|
("longitude", models.FloatField()),
|
|
|
|
("name", models.CharField(max_length=2000)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="Report",
|
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"id",
|
|
|
|
models.UUIDField(
|
|
|
|
default=uuid.uuid4,
|
|
|
|
help_text="ID dieses reports",
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"status",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("action taken", "Action was taken"),
|
|
|
|
("no action taken", "No action was taken"),
|
|
|
|
("waiting", "Waiting for moderator action"),
|
|
|
|
],
|
|
|
|
max_length=30,
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
|
|
|
),
|
2024-05-31 14:25:50 +00:00
|
|
|
("user_comment", models.TextField(blank=True)),
|
|
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
2024-03-20 08:19:58 +00:00
|
|
|
],
|
2024-05-31 14:25:50 +00:00
|
|
|
options={
|
|
|
|
"permissions": [],
|
|
|
|
},
|
2024-03-20 08:19:58 +00:00
|
|
|
),
|
2024-03-23 21:20:31 +00:00
|
|
|
migrations.CreateModel(
|
2024-04-14 11:26:41 +00:00
|
|
|
name="Species",
|
2024-03-23 21:20:31 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"name",
|
|
|
|
models.CharField(
|
|
|
|
help_text="Name der Tierart",
|
|
|
|
max_length=200,
|
|
|
|
verbose_name="Name",
|
|
|
|
),
|
|
|
|
),
|
2024-03-23 21:20:31 +00:00
|
|
|
],
|
2024-04-14 11:26:41 +00:00
|
|
|
options={
|
|
|
|
"verbose_name": "Tierart",
|
|
|
|
"verbose_name_plural": "Tierarten",
|
|
|
|
},
|
2024-03-23 21:20:31 +00:00
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
migrations.CreateModel(
|
2024-04-14 11:26:41 +00:00
|
|
|
name="User",
|
2024-03-20 08:19:58 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("password", models.CharField(max_length=128, verbose_name="password")),
|
|
|
|
(
|
|
|
|
"last_login",
|
|
|
|
models.DateTimeField(
|
|
|
|
blank=True, null=True, verbose_name="last login"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"is_superuser",
|
|
|
|
models.BooleanField(
|
|
|
|
default=False,
|
|
|
|
help_text="Designates that this user has all permissions without explicitly assigning them.",
|
|
|
|
verbose_name="superuser status",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"username",
|
|
|
|
models.CharField(
|
|
|
|
error_messages={
|
|
|
|
"unique": "A user with that username already exists."
|
|
|
|
},
|
|
|
|
help_text="Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.",
|
|
|
|
max_length=150,
|
|
|
|
unique=True,
|
|
|
|
validators=[
|
|
|
|
django.contrib.auth.validators.UnicodeUsernameValidator()
|
|
|
|
],
|
|
|
|
verbose_name="username",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"first_name",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, max_length=150, verbose_name="first name"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"last_name",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, max_length=150, verbose_name="last name"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"email",
|
|
|
|
models.EmailField(
|
|
|
|
blank=True, max_length=254, verbose_name="email address"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"is_staff",
|
|
|
|
models.BooleanField(
|
|
|
|
default=False,
|
|
|
|
help_text="Designates whether the user can log into this admin site.",
|
|
|
|
verbose_name="staff status",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"is_active",
|
|
|
|
models.BooleanField(
|
|
|
|
default=True,
|
|
|
|
help_text="Designates whether this user should be treated as active. Unselect this instead of deleting accounts.",
|
|
|
|
verbose_name="active",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"date_joined",
|
|
|
|
models.DateTimeField(
|
|
|
|
default=django.utils.timezone.now, verbose_name="date joined"
|
|
|
|
),
|
|
|
|
),
|
2024-06-08 07:31:23 +00:00
|
|
|
(
|
|
|
|
"trust_level",
|
2024-06-08 10:32:57 +00:00
|
|
|
models.IntegerField(
|
2024-06-08 07:31:23 +00:00
|
|
|
choices=[
|
2024-06-08 10:32:57 +00:00
|
|
|
("admin", 4),
|
|
|
|
("Moderator", 3),
|
|
|
|
("Koordinator*in", 2),
|
|
|
|
("Mitglied", 1),
|
2024-06-08 07:31:23 +00:00
|
|
|
],
|
2024-06-08 10:32:57 +00:00
|
|
|
default=1,
|
2024-06-08 07:31:23 +00:00
|
|
|
),
|
|
|
|
),
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"groups",
|
|
|
|
models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="The groups this user belongs to. A user will get all permissions granted to each of their groups.",
|
|
|
|
related_name="user_set",
|
|
|
|
related_query_name="user",
|
|
|
|
to="auth.group",
|
|
|
|
verbose_name="groups",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"user_permissions",
|
|
|
|
models.ManyToManyField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Specific permissions for this user.",
|
|
|
|
related_name="user_set",
|
|
|
|
related_query_name="user",
|
|
|
|
to="auth.permission",
|
|
|
|
verbose_name="user permissions",
|
|
|
|
),
|
|
|
|
),
|
2024-06-08 07:31:23 +00:00
|
|
|
(
|
|
|
|
"preferred_language",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="fellchensammlung.language",
|
|
|
|
verbose_name="Bevorzugte Sprache",
|
|
|
|
),
|
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
],
|
|
|
|
options={
|
2024-06-08 07:31:23 +00:00
|
|
|
"verbose_name": "Nutzer*in",
|
|
|
|
"verbose_name_plural": "Nutzer*innen",
|
2024-03-20 08:19:58 +00:00
|
|
|
},
|
2024-04-14 11:26:41 +00:00
|
|
|
managers=[
|
|
|
|
("objects", django.contrib.auth.models.UserManager()),
|
|
|
|
],
|
2024-03-20 08:19:58 +00:00
|
|
|
),
|
2024-06-08 07:31:23 +00:00
|
|
|
migrations.CreateModel(
|
|
|
|
name="AdoptionNotice",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"created_at",
|
|
|
|
models.DateField(
|
|
|
|
default=datetime.datetime.now, verbose_name="Erstellt am"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"searching_since",
|
|
|
|
models.DateField(verbose_name="Sucht nach einem Zuhause seit"),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=200)),
|
|
|
|
(
|
|
|
|
"description",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="Beschreibung"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"further_information",
|
|
|
|
models.URLField(
|
|
|
|
blank=True, null=True, verbose_name="Link zu mehr Informationen"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"group_only",
|
|
|
|
models.BooleanField(
|
|
|
|
default=False, verbose_name="Ausschließlich Gruppenadoption"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"location_string",
|
|
|
|
models.CharField(max_length=200, verbose_name="Ortsangabe"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"created_by",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
verbose_name="Creator",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"photos",
|
|
|
|
models.ManyToManyField(blank=True, to="fellchensammlung.image"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"location",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
|
|
to="fellchensammlung.location",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
"permissions": [
|
|
|
|
(
|
|
|
|
"create_active_adoption_notice",
|
|
|
|
"Can create an active adoption notice",
|
|
|
|
)
|
|
|
|
],
|
|
|
|
},
|
|
|
|
),
|
2024-04-07 09:33:41 +00:00
|
|
|
migrations.CreateModel(
|
2024-05-31 14:25:50 +00:00
|
|
|
name="AdoptionNoticeStatus",
|
2024-04-07 09:33:41 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"major_status",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("active", "active"),
|
2024-06-08 10:32:57 +00:00
|
|
|
("awaiting_action", "in review"),
|
2024-05-31 14:25:50 +00:00
|
|
|
("closed", "closed"),
|
|
|
|
("disabled", "disabled"),
|
|
|
|
],
|
|
|
|
max_length=200,
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"minor_status",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("searching", "searching"),
|
|
|
|
("interested", "interested"),
|
|
|
|
("waiting_for_review", "waiting_for_review"),
|
2024-06-08 10:32:57 +00:00
|
|
|
("needs_additional_info", "needs_additional_info"),
|
2024-05-31 14:25:50 +00:00
|
|
|
(
|
|
|
|
"successful_with_notfellchen",
|
|
|
|
"successful_with_notfellchen",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"successful_without_notfellchen",
|
|
|
|
"successful_without_notfellchen",
|
|
|
|
),
|
|
|
|
("animal_died", "animal_died"),
|
|
|
|
(
|
|
|
|
"closed_for_other_adoption_notice",
|
|
|
|
"closed_for_other_adoption_notice",
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"not_open_for_adoption_anymore",
|
|
|
|
"not_open_for_adoption_anymore",
|
|
|
|
),
|
|
|
|
("other", "other"),
|
|
|
|
("against_the_rules", "against_the_rules"),
|
|
|
|
("missing_information", "missing_information"),
|
2024-06-08 07:31:23 +00:00
|
|
|
("technical_error", "technical_error"),
|
2024-05-31 14:25:50 +00:00
|
|
|
],
|
|
|
|
max_length=200,
|
|
|
|
),
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"adoption_notice",
|
|
|
|
models.OneToOneField(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="fellchensammlung.adoptionnotice",
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
|
|
|
),
|
2024-05-31 14:25:50 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="Announcement",
|
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"text_ptr",
|
|
|
|
models.OneToOneField(
|
|
|
|
auto_created=True,
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
parent_link=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
to="fellchensammlung.text",
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
|
|
|
),
|
2024-05-31 14:25:50 +00:00
|
|
|
("logged_in_only", models.BooleanField(default=False)),
|
|
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"publish_start_time",
|
|
|
|
models.DateTimeField(verbose_name="Veröffentlichungszeitpunk"),
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"publish_end_time",
|
|
|
|
models.DateTimeField(verbose_name="Veröffentlichungsende"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"type",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("important", "important"),
|
|
|
|
("warning", "warning"),
|
|
|
|
("info", "info"),
|
|
|
|
],
|
|
|
|
default="info",
|
|
|
|
max_length=100,
|
|
|
|
),
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
2024-04-07 09:33:41 +00:00
|
|
|
],
|
2024-05-31 14:25:50 +00:00
|
|
|
bases=("fellchensammlung.text",),
|
|
|
|
),
|
2024-03-23 21:20:31 +00:00
|
|
|
migrations.CreateModel(
|
2024-05-31 14:25:50 +00:00
|
|
|
name="Comment",
|
2024-03-23 21:20:31 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
2024-05-31 14:25:50 +00:00
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
2024-04-14 11:26:41 +00:00
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
2024-05-31 14:25:50 +00:00
|
|
|
("text", models.TextField(verbose_name="Inhalt")),
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"adoption_notice",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="fellchensammlung.adoptionnotice",
|
2024-05-31 14:25:50 +00:00
|
|
|
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,
|
2024-06-08 07:31:23 +00:00
|
|
|
to=settings.AUTH_USER_MODEL,
|
2024-05-31 14:25:50 +00:00
|
|
|
verbose_name="Nutzer*in",
|
2024-04-14 11:26:41 +00:00
|
|
|
),
|
|
|
|
),
|
2024-03-23 21:20:31 +00:00
|
|
|
],
|
|
|
|
),
|
2024-06-08 07:31:23 +00:00
|
|
|
migrations.AddField(
|
|
|
|
model_name="text",
|
|
|
|
name="language",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="fellchensammlung.language",
|
|
|
|
verbose_name="Sprache",
|
|
|
|
),
|
|
|
|
),
|
2024-03-23 21:20:31 +00:00
|
|
|
migrations.CreateModel(
|
2024-04-14 11:26:41 +00:00
|
|
|
name="ModerationAction",
|
2024-03-23 21:20:31 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"action",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("user_banned", "User was banned"),
|
|
|
|
("content_deleted", "Content was deleted"),
|
|
|
|
("comment", "Comment was added"),
|
|
|
|
("other_action_taken", "Other action was taken"),
|
|
|
|
("no_action_taken", "No action was taken"),
|
|
|
|
],
|
|
|
|
max_length=30,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
|
|
("public_comment", models.TextField(blank=True)),
|
|
|
|
("private_comment", models.TextField(blank=True)),
|
|
|
|
(
|
|
|
|
"report",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="fellchensammlung.report",
|
|
|
|
),
|
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2024-04-14 11:26:41 +00:00
|
|
|
name="RescueOrganization",
|
2024-03-20 08:19:58 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(max_length=200)),
|
|
|
|
(
|
|
|
|
"trusted",
|
|
|
|
models.BooleanField(default=False, verbose_name="Vertrauenswürdig"),
|
|
|
|
),
|
2024-05-31 14:25:50 +00:00
|
|
|
(
|
|
|
|
"location_string",
|
|
|
|
models.CharField(
|
|
|
|
max_length=200, verbose_name="Ort der Organisation"
|
|
|
|
),
|
|
|
|
),
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"instagram",
|
|
|
|
models.URLField(
|
|
|
|
blank=True, null=True, verbose_name="Instagram Profil"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"facebook",
|
|
|
|
models.URLField(
|
|
|
|
blank=True, null=True, verbose_name="Facebook Profil"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"fediverse_profile",
|
|
|
|
models.URLField(
|
|
|
|
blank=True, null=True, verbose_name="Fediverse Profil"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"website",
|
|
|
|
models.URLField(blank=True, null=True, verbose_name="Website"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"location",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="fellchensammlung.location",
|
|
|
|
),
|
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
],
|
|
|
|
),
|
2024-03-23 21:20:31 +00:00
|
|
|
migrations.AddField(
|
2024-04-14 11:26:41 +00:00
|
|
|
model_name="adoptionnotice",
|
|
|
|
name="organization",
|
|
|
|
field=models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
|
|
to="fellchensammlung.rescueorganization",
|
|
|
|
verbose_name="Organisation",
|
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
),
|
2024-04-14 13:59:15 +00:00
|
|
|
migrations.CreateModel(
|
|
|
|
name="Rule",
|
|
|
|
fields=[
|
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("title", models.CharField(max_length=200)),
|
|
|
|
("rule_text", models.TextField()),
|
|
|
|
("rule_identifier", models.CharField(max_length=24)),
|
|
|
|
(
|
|
|
|
"language",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="fellchensammlung.language",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name="report",
|
|
|
|
name="reported_broken_rules",
|
2024-05-31 14:25:50 +00:00
|
|
|
field=models.ManyToManyField(to="fellchensammlung.rule"),
|
2024-04-14 13:59:15 +00:00
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
migrations.CreateModel(
|
2024-04-14 11:26:41 +00:00
|
|
|
name="Animal",
|
2024-03-20 08:19:58 +00:00
|
|
|
fields=[
|
2024-04-14 11:26:41 +00:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("date_of_birth", models.DateField(verbose_name="Geburtsdatum")),
|
|
|
|
("name", models.CharField(max_length=200)),
|
|
|
|
(
|
|
|
|
"description",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="Beschreibung"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"sex",
|
|
|
|
models.CharField(
|
|
|
|
choices=[
|
|
|
|
("M_N", "neutered male"),
|
|
|
|
("M", "male"),
|
|
|
|
("F_N", "neutered female"),
|
|
|
|
("F", "female"),
|
|
|
|
],
|
|
|
|
max_length=20,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"adoption_notice",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="fellchensammlung.adoptionnotice",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"photos",
|
|
|
|
models.ManyToManyField(blank=True, to="fellchensammlung.image"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"species",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="fellchensammlung.species",
|
|
|
|
),
|
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
],
|
|
|
|
),
|
2024-04-14 13:59:15 +00:00
|
|
|
migrations.CreateModel(
|
2024-05-31 14:25:50 +00:00
|
|
|
name="ReportAdoptionNotice",
|
2024-04-14 13:59:15 +00:00
|
|
|
fields=[
|
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"report_ptr",
|
|
|
|
models.OneToOneField(
|
2024-04-14 13:59:15 +00:00
|
|
|
auto_created=True,
|
2024-05-31 14:25:50 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
parent_link=True,
|
2024-04-14 13:59:15 +00:00
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
2024-05-31 14:25:50 +00:00
|
|
|
to="fellchensammlung.report",
|
2024-04-14 13:59:15 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"adoption_notice",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="fellchensammlung.adoptionnotice",
|
2024-04-14 13:59:15 +00:00
|
|
|
),
|
|
|
|
),
|
2024-05-31 14:25:50 +00:00
|
|
|
],
|
|
|
|
bases=("fellchensammlung.report",),
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name="ReportComment",
|
|
|
|
fields=[
|
2024-04-14 13:59:15 +00:00
|
|
|
(
|
2024-05-31 14:25:50 +00:00
|
|
|
"report_ptr",
|
|
|
|
models.OneToOneField(
|
|
|
|
auto_created=True,
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
parent_link=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
to="fellchensammlung.report",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"reported_comment",
|
2024-04-14 13:59:15 +00:00
|
|
|
models.ForeignKey(
|
2024-05-31 14:25:50 +00:00
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to="fellchensammlung.comment",
|
2024-04-14 13:59:15 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
2024-05-31 14:25:50 +00:00
|
|
|
bases=("fellchensammlung.report",),
|
2024-04-14 13:59:15 +00:00
|
|
|
),
|
2024-03-20 08:19:58 +00:00
|
|
|
]
|