1
0
Fork 0

added EMailField for validation

This commit is contained in:
Benni Bärmann 2020-11-16 16:31:29 +01:00
parent 1c4d1b2e2e
commit 1809287852
1 changed files with 1 additions and 1 deletions

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)