From 324d3d5161ef2e318e2c20df8adf9da8364a8dda Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Thu, 1 Apr 2021 10:30:40 +0200 Subject: [PATCH] removed bvg field --- evapp/forms.py | 2 +- evapp/migrations/0013_remove_employee_bvg.py | 17 +++++++++++++++++ evapp/models.py | 1 - evapp/settings.py | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 evapp/migrations/0013_remove_employee_bvg.py diff --git a/evapp/forms.py b/evapp/forms.py index 039ea83..6fc3a0f 100644 --- a/evapp/forms.py +++ b/evapp/forms.py @@ -42,7 +42,7 @@ class WorkingForm(EvaForm): class Meta: model = Employee fields = ['firstdate_employment', 'firstdate_presence', 'jobdescription_german', - 'jobdescription_english', 'remote', 'desk', 'bvg'] + 'jobdescription_english', 'remote', 'desk',] widgets = {'firstdate_employment': DateInput(attrs={'type': 'date'}), 'firstdate_presence': DateInput(attrs={'type': 'date'}),} diff --git a/evapp/migrations/0013_remove_employee_bvg.py b/evapp/migrations/0013_remove_employee_bvg.py new file mode 100644 index 0000000..afa3126 --- /dev/null +++ b/evapp/migrations/0013_remove_employee_bvg.py @@ -0,0 +1,17 @@ +# Generated by Django 3.1.4 on 2021-04-01 08:30 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('evapp', '0012_employee_bvg'), + ] + + operations = [ + migrations.RemoveField( + model_name='employee', + name='bvg', + ), + ] diff --git a/evapp/models.py b/evapp/models.py index af72e89..cdaaaf3 100644 --- a/evapp/models.py +++ b/evapp/models.py @@ -62,7 +62,6 @@ class Employee(models.Model): jobdescription_english = models.CharField(null=True, max_length=100, verbose_name="Job description(english)") remote = models.BooleanField(verbose_name='Braucht keinen Arbeitsplatz weil Home-Office', default=False) desk = models.CharField(max_length=100, null=True, blank=True, verbose_name="Wo soll der Arbeitsplatz sein?") - bvg = models.BooleanField(verbose_name='Bekommt eine BVG-Karte, weil in Berlin tätig', default=True) # IT related stuff laptop = models.CharField(max_length=2, choices=LAPTOP_CHOICES.items(), default='14') diff --git a/evapp/settings.py b/evapp/settings.py index 478b253..4e40c25 100644 --- a/evapp/settings.py +++ b/evapp/settings.py @@ -37,7 +37,7 @@ MAILS = { 'HR': { 'MAIL': 'hr@wikimedia.de', 'DATA': [ - 'department', 'team', 'language', 'eva', + 'department', 'team', 'language', ] }, 'DIRECTORAT': {