From dce3d89c7e8eb0349e81462ef23b06390731a5ef Mon Sep 17 00:00:00 2001 From: moanos Date: Thu, 14 Nov 2024 19:31:42 +0100 Subject: [PATCH] feat: rename comment to internal comment --- ...ment_rescueorganization_internal_comment.py | 18 ++++++++++++++++++ ...lter_rescueorganization_internal_comment.py | 18 ++++++++++++++++++ src/fellchensammlung/models.py | 2 +- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/fellchensammlung/migrations/0019_rename_comment_rescueorganization_internal_comment.py create mode 100644 src/fellchensammlung/migrations/0020_alter_rescueorganization_internal_comment.py diff --git a/src/fellchensammlung/migrations/0019_rename_comment_rescueorganization_internal_comment.py b/src/fellchensammlung/migrations/0019_rename_comment_rescueorganization_internal_comment.py new file mode 100644 index 0000000..4617e03 --- /dev/null +++ b/src/fellchensammlung/migrations/0019_rename_comment_rescueorganization_internal_comment.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.1 on 2024-11-14 18:30 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('fellchensammlung', '0018_rescueorganization_description'), + ] + + operations = [ + migrations.RenameField( + model_name='rescueorganization', + old_name='comment', + new_name='internal_comment', + ), + ] diff --git a/src/fellchensammlung/migrations/0020_alter_rescueorganization_internal_comment.py b/src/fellchensammlung/migrations/0020_alter_rescueorganization_internal_comment.py new file mode 100644 index 0000000..3ceebcd --- /dev/null +++ b/src/fellchensammlung/migrations/0020_alter_rescueorganization_internal_comment.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.1 on 2024-11-14 18:31 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('fellchensammlung', '0019_rename_comment_rescueorganization_internal_comment'), + ] + + operations = [ + migrations.AlterField( + model_name='rescueorganization', + name='internal_comment', + field=models.TextField(blank=True, null=True, verbose_name='Interner Kommentar'), + ), + ] diff --git a/src/fellchensammlung/models.py b/src/fellchensammlung/models.py index b941143..86d75d1 100644 --- a/src/fellchensammlung/models.py +++ b/src/fellchensammlung/models.py @@ -110,7 +110,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, ) + internal_comment = models.TextField(verbose_name=_("Interner Kommentar"), null=True, blank=True, ) description = models.TextField(null=True, blank=True, verbose_name=_('Beschreibung')) # Markdown allowed def get_absolute_url(self):