WM-12: use textarea for other fields

This commit is contained in:
Oliver Zander 2025-11-10 11:44:04 +01:00 committed by Tobias Herre
parent f18b97a213
commit ee987d73c2
2 changed files with 24 additions and 1 deletions

View File

@ -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)'),
),
]

View File

@ -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)