From 03acbe7ee7dea03b9a014f693b9c840438fe4225 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 23 Dec 2020 12:17:50 +0100 Subject: [PATCH] some more model fields added --- evapp/migrations/0002_auto_20201223_1117.py | 38 +++++++++++++++++++++ evapp/models.py | 7 ++++ 2 files changed, 45 insertions(+) create mode 100644 evapp/migrations/0002_auto_20201223_1117.py diff --git a/evapp/migrations/0002_auto_20201223_1117.py b/evapp/migrations/0002_auto_20201223_1117.py new file mode 100644 index 0000000..aab079b --- /dev/null +++ b/evapp/migrations/0002_auto_20201223_1117.py @@ -0,0 +1,38 @@ +# Generated by Django 3.1.4 on 2020-12-23 11:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('evapp', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='employee', + name='desk', + field=models.CharField(max_length=100, null=True, verbose_name='Wo soll der Arbeitsplatz sein?'), + ), + migrations.AddField( + model_name='employee', + name='firstdate_employment', + field=models.DateField(null=True, verbose_name='erster Arbeitstag'), + ), + migrations.AddField( + model_name='employee', + name='firstdate_presence', + field=models.DateField(null=True, verbose_name='erster Tag der Anwesenheit in der Geschäftsstelle'), + ), + migrations.AddField( + model_name='employee', + name='jobdescription_english', + field=models.CharField(max_length=100, null=True, verbose_name='job description(english)'), + ), + migrations.AddField( + model_name='employee', + name='jobdescription_german', + field=models.CharField(max_length=100, null=True, verbose_name='Stellenbeschreibung(deutsch)'), + ), + ] diff --git a/evapp/models.py b/evapp/models.py index 164e6df..aee1d9b 100644 --- a/evapp/models.py +++ b/evapp/models.py @@ -11,3 +11,10 @@ class Employee(models.Model): email = models.CharField(max_length=50, verbose_name="E-Mail-Adresse") department = models.CharField(max_length=5, choices=DEPARTMENT_CHOICES.items()) team = models.CharField(max_length=20, null=True, blank=True) + + firstdate_employment = models.DateField(null=True, verbose_name="erster Arbeitstag") + firstdate_presence = models.DateField(null=True, verbose_name="erster Tag der Anwesenheit in der Geschäftsstelle") + jobdescription_german = models.CharField(null=True, max_length=100, verbose_name="Stellenbeschreibung(deutsch)") + jobdescription_english = models.CharField(null=True, max_length=100, verbose_name="job description(english)") + desk = models.CharField(max_length=100, null=True, verbose_name="Wo soll der Arbeitsplatz sein?") + # TODO: we need an optional question for remote work here