From 4dbb57ce4210846568cf3d03526c5371705e0433 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 8 Feb 2021 15:51:39 +0100 Subject: [PATCH] rebu2go added --- evapp/forms.py | 2 +- evapp/models.py | 1 + evapp/settings.py | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/evapp/forms.py b/evapp/forms.py index 5a8864d..4b95ab4 100644 --- a/evapp/forms.py +++ b/evapp/forms.py @@ -42,7 +42,7 @@ class ITForm(EvaForm): model = Employee fields = [ 'laptop', 'vendor', 'os', 'screen', 'mobile', 'landline', 'comment', - 'language', 'accounts', 'lists', ] + 'language', 'accounts', 'lists', 'rebu2go' ] class OfficeForm(EvaForm): class Meta: diff --git a/evapp/models.py b/evapp/models.py index 8837349..664c92e 100644 --- a/evapp/models.py +++ b/evapp/models.py @@ -70,6 +70,7 @@ class Employee(models.Model): language = models.CharField(max_length=3, choices=LANG_CHOICES.items(), default="GER") accounts = MultiSelectField(choices=ACCOUNT_CHOICES.items(), null=True) lists = models.CharField(max_length=100, null=True) + rebu2go = models.BooleanField(verbose_name="Rebu2Go-Zugang benötigt?", default=False) # office related stuff transponder = models.CharField(max_length=7, choices=TRANSPONDER_CHOICES.items(), default='NORM') diff --git a/evapp/settings.py b/evapp/settings.py index e50857b..16d800e 100644 --- a/evapp/settings.py +++ b/evapp/settings.py @@ -13,4 +13,7 @@ MAILS = {'IT': { 'MAIL': 'office@wikimedia.de', 'DATA': ['transponder',], }, + 'ACCOUNTING': {'MAIL': 'accounting@wikimedia.de', + 'DATA': ['rebu2go',], + } }