added EMailField for validation

This commit is contained in:
Benni Baermann 2020-11-16 16:31:29 +01:00
parent 1c4d1b2e2e
commit 1809287852

View file

@ -7,7 +7,7 @@ from .settings import ACCOUNTS
class Volunteer(models.Model): class Volunteer(models.Model):
realname = models.CharField(max_length=200, null=True, verbose_name="Name / Hauptansprechperson") realname = models.CharField(max_length=200, null=True, verbose_name="Name / Hauptansprechperson")
email = models.CharField(max_length=200, null=True, verbose_name='E-Mail-Adresse') email = models.EmailField(max_length=200, null=True, verbose_name='E-Mail-Adresse')
# the following Fields are not supposed to be edited by users # the following Fields are not supposed to be edited by users
granted = models.BooleanField(null=True) granted = models.BooleanField(null=True)