From 5dabfb4a43e1bb1fed625af369d09fa9d988c359 Mon Sep 17 00:00:00 2001 From: Samuel Zielke Date: Mon, 24 Mar 2025 10:17:41 +0100 Subject: [PATCH] =?UTF-8?q?Hinzuf=C3=BCgen=20von=20SVD=20und=20Filter=20f?= =?UTF-8?q?=C3=BCr=20aktuell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/admin.py | 4 ++-- main/models.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main/admin.py b/main/admin.py index f041d37..e9aa36a 100644 --- a/main/admin.py +++ b/main/admin.py @@ -22,9 +22,9 @@ class MainDB_contributorsAdmin(ExportMixin, ImportMixin, admin.ModelAdmin): list_display = ('full_name', 'actual', 'da_approval', 'leader', 'tage_anzeige', 'get_deparment', 'gender', 'birthday_year', 'get_congregation', 'mobilnumber', 'email') - list_filter = ('gender', 'roles', 'deparment', 'da_approval') + list_filter = ('gender', 'roles', 'deparment', 'da_approval', 'actual') - search_fields = ('name', 'firstname', 'congregation__title', 'deparment__title', 'mobilnumber', 'email') + search_fields = ('name', 'firstname', 'congregation__title', 'deparment__title', 'mobilnumber', 'email', 'jwpub') def get_congregation(self, obj): return obj.congregation diff --git a/main/models.py b/main/models.py index 395f47b..5292900 100644 --- a/main/models.py +++ b/main/models.py @@ -70,6 +70,7 @@ class contributors(models.Model): congregation = models.ForeignKey("main.congregation", verbose_name=("Versammlung"), on_delete=models.SET_NULL, null=True, blank=True) roles = models.ManyToManyField("main.role", verbose_name=("role"), null=True, blank=True) pioneer = models.BooleanField(("pionier"), default=False) + svd = models.BooleanField(("s.v.d."), default=False) gender = models.CharField("Geschlecht",max_length=20, choices=[("M", "Männlich"), ("W", "Weiblich")]) da_approval = models.BooleanField(("Freigabe"), default=False) deparment = models.ManyToManyField("main.department", verbose_name=("Abteilung"), null=True, blank=True)