From 4e953c83eac1c9ec1c2fba8c522c58739fd05e0c Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 9 Nov 2024 10:09:46 +0100 Subject: [PATCH] feat: Add comment field to RescueOrg --- .../0015_rescueorganization_comment.py | 18 ++++++++++++++++++ src/fellchensammlung/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 src/fellchensammlung/migrations/0015_rescueorganization_comment.py diff --git a/src/fellchensammlung/migrations/0015_rescueorganization_comment.py b/src/fellchensammlung/migrations/0015_rescueorganization_comment.py new file mode 100644 index 0000000..6f0d985 --- /dev/null +++ b/src/fellchensammlung/migrations/0015_rescueorganization_comment.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.1 on 2024-11-09 09:09 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('fellchensammlung', '0014_rescueorganization_email'), + ] + + operations = [ + migrations.AddField( + model_name='rescueorganization', + name='comment', + field=models.TextField(blank=True, null=True, verbose_name='Kommentar'), + ), + ] diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 0a293d2..f94b55d 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -185,6 +185,7 @@ class RescueOrganization(models.Model): website = models.URLField(null=True, blank=True, verbose_name=_('Website')) updated_at = models.DateTimeField(auto_now=True) created_at = models.DateTimeField(auto_now_add=True) + comment = models.TextField(verbose_name=_("Kommentar"), null=True, blank=True,) class AdoptionNotice(models.Model):