From 2c11f7c385e7b50f4ff329d42c8a73f310d084e3 Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 14 Nov 2024 19:01:24 +0100 Subject: [PATCH] feat: Add description for organizations --- .../0018_rescueorganization_description.py | 18 ++++++++++++++++++ src/fellchensammlung/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 src/fellchensammlung/migrations/0018_rescueorganization_description.py diff --git a/src/fellchensammlung/migrations/0018_rescueorganization_description.py b/src/fellchensammlung/migrations/0018_rescueorganization_description.py new file mode 100644 index 0000000..3d2e355 --- /dev/null +++ b/src/fellchensammlung/migrations/0018_rescueorganization_description.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.1 on 2024-11-14 17:58 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('fellchensammlung', '0017_user_organization_affiliation'), + ] + + operations = [ + migrations.AddField( + model_name='rescueorganization', + name='description', + field=models.TextField(blank=True, null=True, verbose_name='Beschreibung'), + ), + ] diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index 8419b09..c908df1 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -111,6 +111,7 @@ class RescueOrganization(models.Model): 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, ) + description = models.TextField(null=True, blank=True, verbose_name=_('Beschreibung')) # Markdown allowed class User(AbstractUser):