From 5674b4491d5458b72fc153ed9afe8851441daa01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marike=20Vo=C3=9Fbeck?= Date: Thu, 12 Mar 2026 11:00:42 +0100 Subject: [PATCH] inserted miscellaneous field on rest form --- austritt/forms.py | 2 +- austritt/models.py | 6 +++++- austritt/settings.py | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/austritt/forms.py b/austritt/forms.py index e1e74dd..0b88d66 100644 --- a/austritt/forms.py +++ b/austritt/forms.py @@ -47,7 +47,7 @@ class ITForm(EvaForm): class RestForm(EvaForm): class Meta: model = Employee - fields = ['credit_card', 'transponder_id', 'bahncard', 'website'] + fields = ['credit_card', 'transponder_id', 'bahncard', 'website', 'miscellaneous'] class DummyForm(ModelForm): class Meta: diff --git a/austritt/models.py b/austritt/models.py index 7614577..152c33d 100644 --- a/austritt/models.py +++ b/austritt/models.py @@ -81,4 +81,8 @@ class Employee(models.Model): bahncard = models.CharField(max_length=5, default="NEIN", blank=True, choices=JANEIN_CHOICES.items(), verbose_name="Bahncard-Abo vorhanden?") # kom related stuff - website = models.CharField(max_length=5, default="NEIN", blank=True, choices=JANEIN_CHOICES.items(), verbose_name="Müssen Dinge von der Webseite gelöscht werden?") \ No newline at end of file + website = models.CharField(max_length=5, default="NEIN", blank=True, choices=JANEIN_CHOICES.items(), verbose_name="Müssen Dinge von der Webseite gelöscht werden?") + + + # rest text field + miscellaneous = models.TextField(max_length=500, null=True, blank=True, verbose_name=_("Sonstiges")) \ No newline at end of file diff --git a/austritt/settings.py b/austritt/settings.py index 7a762b6..5fb21cc 100644 --- a/austritt/settings.py +++ b/austritt/settings.py @@ -88,6 +88,7 @@ MAILS = { 'pension', 'credit_card', 'bahncard', + 'miscellaneous', ] } }