From b776c4811b096d51bd34f6b26f45ba0545f7631a Mon Sep 17 00:00:00 2001 From: Masin Al-Dujaili Date: Fri, 11 Aug 2023 12:51:51 +0200 Subject: [PATCH] =?UTF-8?q?Migrations=20f=C3=BCr=20vorigen=20Commit=20erze?= =?UTF-8?q?ugt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...oyee_accounts_alter_employee_department.py | 24 +++++++++++++++++++ evapp/models.py | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 evapp/migrations/0004_alter_employee_accounts_alter_employee_department.py diff --git a/evapp/migrations/0004_alter_employee_accounts_alter_employee_department.py b/evapp/migrations/0004_alter_employee_accounts_alter_employee_department.py new file mode 100644 index 0000000..3456ec8 --- /dev/null +++ b/evapp/migrations/0004_alter_employee_accounts_alter_employee_department.py @@ -0,0 +1,24 @@ +# Generated by Django 4.2.4 on 2023-08-11 10:28 + +from django.db import migrations, models +import multiselectfield.db.fields + + +class Migration(migrations.Migration): + + dependencies = [ + ('evapp', '0003_auto_20220208_0955'), + ] + + operations = [ + migrations.AlterField( + model_name='employee', + name='accounts', + field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('OTRSWMDE', 'OTRS Ticketsystem'), ('CIVIC1', 'Civic CRM (allgemein)'), ('CIVIC2', 'Civic CRM (Mailings, impliziert allgemein)'), ('WEB', 'www.wikimedia.de (edit)'), ('BLOG', 'blog.wikimedia.de (edit)'), ('FORUM', 'forum.wikimedia.de')], max_length=10, null=True, verbose_name='Zusätzliche Accounts'), + ), + migrations.AlterField( + model_name='employee', + name='department', + field=models.CharField(choices=[('COENG', 'Communitys & Engagement'), ('SOFT', 'Softwareentwicklung'), ('CENT', 'Central'), ('KOMAD', 'Kommunikation & Advocacy'), ('VOR', 'Vorstand')], max_length=5, verbose_name='Bereich'), + ), + ] diff --git a/evapp/models.py b/evapp/models.py index 39a595f..d4e8e13 100644 --- a/evapp/models.py +++ b/evapp/models.py @@ -70,7 +70,7 @@ class Employee(models.Model): keyboard = models.CharField(max_length=2, choices=KEYBOARD_CHOICES.items(), default='DE', verbose_name=_("Tastaturlayout")) comment = models.TextField(max_length=500, null=True, blank=True, verbose_name=_("zusätzliche IT-Anforderungen")) language = models.CharField(max_length=3, choices=LANG_CHOICES.items(), default="GER", verbose_name=_("Sprache")) - accounts = MultiSelectField(choices=ACCOUNT_CHOICES.items(), null=True, blank=True, verbose_name=_("Zusätzliche Accounts")) + accounts = MultiSelectField(choices=ACCOUNT_CHOICES.items(), max_length=10, null=True, blank=True, verbose_name=_("Zusätzliche Accounts")) lists = models.CharField(max_length=100, null=True, blank=True, verbose_name=_("Zusätzliche Mailinglisten")) rebu2go = models.BooleanField(verbose_name=_("Rebu2Go-Zugang benötigt?"), default=False)