Use EmailField for email field

This commit is contained in:
Ludovic Stephan 2020-10-26 13:34:30 +01:00 committed by Martin Pépin
parent 72cd55716b
commit badee498a3
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -62,7 +62,7 @@ class PetitCoursAbility(models.Model):
class PetitCoursDemande(models.Model):
name = models.CharField(_("Nom/prénom"), max_length=200)
email = models.CharField(_("Adresse email"), max_length=300)
email = models.EmailField(_("Adresse email"), max_length=300)
phone = models.CharField(_("Téléphone (facultatif)"), max_length=20, blank=True)
quand = models.CharField(
_("Quand ?"),