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

added email field validation

This commit is contained in:
Benni Bärmann 2021-03-02 11:44:42 +01:00
parent effa216b2b
commit 7458d06687
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Employee(models.Model):
firstname = models.CharField(max_length=50, verbose_name="Vorname")
lastname = models.CharField(max_length=50, verbose_name="Nachname")
intern = models.BooleanField(verbose_name='Interne_r Mitarbeiter_in?', default=True)
email = models.CharField(max_length=50, verbose_name="E-Mail-Adresse")
email = models.EmailField(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) # TODO? besser als choices?