chol
/
eva
forked from tohe/eva
1
0
Fork 0

some more model fields added

This commit is contained in:
Benni Bärmann 2020-12-23 12:17:50 +01:00
parent c4403bc117
commit 03acbe7ee7
2 changed files with 45 additions and 0 deletions

View File

@ -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)'),
),
]

View File

@ -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