forked from DGNum/gestioCOF
Merge branch 'Aufinal/email_validation' into 'master'
Utilise un EmailField pour valider des emails See merge request klub-dev-ens/gestioCOF!471
This commit is contained in:
commit
f952d50b12
3 changed files with 23 additions and 1 deletions
|
@ -23,6 +23,10 @@ adhérents ni des cotisations.
|
||||||
|
|
||||||
## Version ??? - dans un futur proche
|
## Version ??? - dans un futur proche
|
||||||
|
|
||||||
|
### COF
|
||||||
|
|
||||||
|
- On s'assure que les emails dans les demandes de petits cours sont valides.
|
||||||
|
|
||||||
### K-Fêt
|
### K-Fêt
|
||||||
|
|
||||||
- On peut supprimer un inventaire. Seuls les articles dont c'est le dernier
|
- On peut supprimer un inventaire. Seuls les articles dont c'est le dernier
|
||||||
|
|
18
gestioncof/migrations/0018_petitscours_email.py
Normal file
18
gestioncof/migrations/0018_petitscours_email.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 2.2.12 on 2020-10-26 12:35
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("gestioncof", "0017_petitscours_uniqueness"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="petitcoursdemande",
|
||||||
|
name="email",
|
||||||
|
field=models.EmailField(max_length=300, verbose_name="Adresse email"),
|
||||||
|
),
|
||||||
|
]
|
|
@ -62,7 +62,7 @@ class PetitCoursAbility(models.Model):
|
||||||
|
|
||||||
class PetitCoursDemande(models.Model):
|
class PetitCoursDemande(models.Model):
|
||||||
name = models.CharField(_("Nom/prénom"), max_length=200)
|
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)
|
phone = models.CharField(_("Téléphone (facultatif)"), max_length=20, blank=True)
|
||||||
quand = models.CharField(
|
quand = models.CharField(
|
||||||
_("Quand ?"),
|
_("Quand ?"),
|
||||||
|
|
Loading…
Reference in a new issue