WMDE
/
eva
forked from tohe/eva
7
1
Fork 0

rebu2go added

This commit is contained in:
Benni Bärmann 2021-02-08 15:51:39 +01:00
parent b7742b5629
commit 4dbb57ce42
3 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class ITForm(EvaForm):
model = Employee model = Employee
fields = [ fields = [
'laptop', 'vendor', 'os', 'screen', 'mobile', 'landline', 'comment', 'laptop', 'vendor', 'os', 'screen', 'mobile', 'landline', 'comment',
'language', 'accounts', 'lists', ] 'language', 'accounts', 'lists', 'rebu2go' ]
class OfficeForm(EvaForm): class OfficeForm(EvaForm):
class Meta: class Meta:

View File

@ -70,6 +70,7 @@ class Employee(models.Model):
language = models.CharField(max_length=3, choices=LANG_CHOICES.items(), default="GER") language = models.CharField(max_length=3, choices=LANG_CHOICES.items(), default="GER")
accounts = MultiSelectField(choices=ACCOUNT_CHOICES.items(), null=True) accounts = MultiSelectField(choices=ACCOUNT_CHOICES.items(), null=True)
lists = models.CharField(max_length=100, null=True) lists = models.CharField(max_length=100, null=True)
rebu2go = models.BooleanField(verbose_name="Rebu2Go-Zugang benötigt?", default=False)
# office related stuff # office related stuff
transponder = models.CharField(max_length=7, choices=TRANSPONDER_CHOICES.items(), default='NORM') transponder = models.CharField(max_length=7, choices=TRANSPONDER_CHOICES.items(), default='NORM')

View File

@ -13,4 +13,7 @@ MAILS = {'IT': {
'MAIL': 'office@wikimedia.de', 'MAIL': 'office@wikimedia.de',
'DATA': ['transponder',], 'DATA': ['transponder',],
}, },
'ACCOUNTING': {'MAIL': 'accounting@wikimedia.de',
'DATA': ['rebu2go',],
}
} }