From ef05df5c98b43c99a0a1c4c7474607f7dea3dbd7 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 16 Sep 2019 00:00:01 +0200 Subject: [PATCH] Revert "Revert "Remove return True in is_adherent and is_connected"" This reverts commit 91028fd155824f3cc2e9503433ae0f107cd98d49. --- users/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/users/models.py b/users/models.py index 821eaffc..2c365c1c 100755 --- a/users/models.py +++ b/users/models.py @@ -425,7 +425,6 @@ 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 @@ -437,7 +436,6 @@ 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