From ee987d73c239427298e0f2100e11384c47a2aba4 Mon Sep 17 00:00:00 2001 From: Oliver Zander Date: Mon, 10 Nov 2025 11:44:04 +0100 Subject: [PATCH] WM-12: use textarea for other fields --- .../0107_alter_category_other_fields.py | 23 +++++++++++++++++++ input/models.py | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 input/migrations/0107_alter_category_other_fields.py diff --git a/input/migrations/0107_alter_category_other_fields.py b/input/migrations/0107_alter_category_other_fields.py new file mode 100644 index 0000000..e71ad2e --- /dev/null +++ b/input/migrations/0107_alter_category_other_fields.py @@ -0,0 +1,23 @@ +# Generated by Django 5.2.5 on 2025-11-10 10:42 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0106_project_username'), + ] + + operations = [ + migrations.AlterField( + model_name='project', + name='categories_other', + field=models.TextField(blank=True, verbose_name='Projektkategorien (Sonstiges)'), + ), + migrations.AlterField( + model_name='project', + name='wikimedia_projects_other', + field=models.TextField(blank=True, verbose_name='Wikimedia-Projekte (Anderes)'), + ), + ] diff --git a/input/models.py b/input/models.py index af21dd4..3ed7335 100755 --- a/input/models.py +++ b/input/models.py @@ -188,7 +188,7 @@ class ProjectCategoryField(models.ManyToManyField): super().__init__(**kwargs) - self.other_field = models.CharField(max_length=200, blank=True) + self.other_field = models.TextField(blank=True) def contribute_to_class(self, cls, name, **kwargs): super().contribute_to_class(cls, name, **kwargs)