diff --git a/src/fellchensammlung/migrations/0055_rescueorganization_ongoing_communication_and_more.py b/src/fellchensammlung/migrations/0055_rescueorganization_ongoing_communication_and_more.py new file mode 100644 index 0000000..2707eaf --- /dev/null +++ b/src/fellchensammlung/migrations/0055_rescueorganization_ongoing_communication_and_more.py @@ -0,0 +1,25 @@ +# Generated by Django 5.2.1 on 2025-07-13 10:54 + +import django.db.models.deletion +from django.conf import settings +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('fellchensammlung', '0054_alter_notification_comment'), + ] + + operations = [ + migrations.AddField( + model_name='rescueorganization', + name='ongoing_communication', + field=models.BooleanField(default=False, help_text='Es findet gerade Kommunikation zwischen Notfellchen und der Organisation statt.', verbose_name='In aktiver Kommunikation'), + ), + migrations.AlterField( + model_name='notification', + name='user_to_notify', + field=models.ForeignKey(help_text='Useraccount der Benachrichtigt wird', on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL, verbose_name='Empfänger*in'), + ), + ] diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 3523e3d..aa92f8a 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -151,6 +151,9 @@ class RescueOrganization(models.Model): exclude_from_check = models.BooleanField(default=False, verbose_name=_('Von Prüfung ausschließen'), help_text=_("Organisation von der manuellen Überprüfung ausschließen, " "z.B. weil Tiere nicht online geführt werden")) + ongoing_communication = models.BooleanField(default=False, verbose_name=_('In aktiver Kommunikation'), + help_text=_( + "Es findet gerade Kommunikation zwischen Notfellchen und der Organisation statt.")) parent_org = models.ForeignKey("RescueOrganization", on_delete=models.PROTECT, blank=True, null=True) class Meta: diff --git a/src/fellchensammlung/templates/fellchensammlung/rescue-organization-check.html b/src/fellchensammlung/templates/fellchensammlung/rescue-organization-check.html index 94346de..60b8f84 100644 --- a/src/fellchensammlung/templates/fellchensammlung/rescue-organization-check.html +++ b/src/fellchensammlung/templates/fellchensammlung/rescue-organization-check.html @@ -30,6 +30,18 @@