From 180928785201353e203b1b2e9e0e3ef2c992b11a Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 16 Nov 2020 16:31:29 +0100 Subject: [PATCH] added EMailField for validation --- input/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/models.py b/input/models.py index 4665c0d..566137a 100644 --- a/input/models.py +++ b/input/models.py @@ -7,7 +7,7 @@ from .settings import ACCOUNTS class Volunteer(models.Model): 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 granted = models.BooleanField(null=True)