From 0a2bcac684631ed59d9c7267b38c46409822befd Mon Sep 17 00:00:00 2001 From: Oliver Zander Date: Fri, 7 Nov 2025 17:12:22 +0100 Subject: [PATCH] WM-19: added username to projects --- input/admin.py | 1 + input/migrations/0106_project_username.py | 18 ++++++++++++++++++ input/models.py | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 input/migrations/0106_project_username.py diff --git a/input/admin.py b/input/admin.py index 39bf13b..1e41504 100755 --- a/input/admin.py +++ b/input/admin.py @@ -114,6 +114,7 @@ class BaseProjectAdmin(admin.ModelAdmin): ('Kontakt', {'fields': ( 'realname', 'email', + 'username', )}), ('Projekt', {'fields': ( 'name', diff --git a/input/migrations/0106_project_username.py b/input/migrations/0106_project_username.py new file mode 100644 index 0000000..17d65a8 --- /dev/null +++ b/input/migrations/0106_project_username.py @@ -0,0 +1,18 @@ +# Generated by Django 5.2.5 on 2025-11-07 15:43 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('input', '0105_add_verbose_names'), + ] + + operations = [ + migrations.AddField( + model_name='project', + name='username', + field=models.CharField(help_text='Wikimedia Benutzer_innenname', max_length=200, blank=True, verbose_name='Benutzer_innenname'), + ), + ] diff --git a/input/models.py b/input/models.py index 9ad08ef..af21dd4 100755 --- a/input/models.py +++ b/input/models.py @@ -217,6 +217,8 @@ class ProjectCategoryField(models.ManyToManyField): class Project(Volunteer): + username = models.CharField(max_length=200, blank=True, verbose_name='Benutzer_innenname', + help_text=mark_safe('Wikimedia Benutzer_innenname')) end_mail_send = models.BooleanField(default=False, verbose_name='Keine Projektabschlussmail schicken') name = models.CharField(max_length=200, verbose_name='Name des Projekts') description = models.CharField(max_length=500, verbose_name='Kurzbeschreibung', null=True)