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"))