diff --git a/users/models.py b/users/models.py index 2c365c1c..821eaffc 100755 --- a/users/models.py +++ b/users/models.py @@ -425,6 +425,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, def is_adherent(self): """ Renvoie True si l'user est adhérent : si self.end_adhesion()>now""" + return True end = self.end_adhesion() if not end: return False @@ -436,6 +437,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser, def is_connected(self): """ Renvoie True si l'user est adhérent : si self.end_adhesion()>now et end_connexion>now""" + return True end = self.end_connexion() if not end: return False