From 6222a9d99960d69f4cc653502b71def79c7d49ae Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sun, 21 Mar 2021 10:01:50 +0100 Subject: [PATCH] =?UTF-8?q?On=20passe=20connection=5Fmethod=20en=20propri?= =?UTF-8?q?=C3=A9t=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- elections/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/elections/models.py b/elections/models.py index b37f031..1fc0d13 100644 --- a/elections/models.py +++ b/elections/models.py @@ -150,6 +150,7 @@ class User(AbstractUser): def get_prefix(self): return self.username.split("__")[0] + @property def connection_method(self): method = self.username.split("__")[0] return CONNECTION_METHODS.get(method, _("identifiants spécifiques"))