Reformatage #29
1 changed files with 6 additions and 3 deletions
|
@ -53,9 +53,12 @@ class Normalien(models.Model):
|
||||||
return self.stages.filter(public=True).order_by('-date_debut')
|
return self.stages.filter(public=True).order_by('-date_debut')
|
||||||
|
|
||||||
def has_nonENS_email(self):
|
def has_nonENS_email(self):
|
||||||
return not (
|
return (
|
||||||
is_email_ens(self.mail, True)
|
self.user.email_address_set
|
||||||
and is_email_ens(self.user.email, True)
|
.exclude(confirmed_at__isnull=True)
|
||||||
|
.exclude(email__endswith="ens.fr")
|
||||||
|
.exclude(email__endswith="ens.psl.eu")
|
||||||
|
.exists()
|
||||||
)
|
)
|
||||||
|
|
||||||
def nom_complet(self):
|
def nom_complet(self):
|
||||||
|
|
Loading…
Reference in a new issue