From 225d374b8e165fae35b5543ab4f22f1e21366e11 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 11 Jul 2018 01:40:06 +0200 Subject: [PATCH] Methode str pour les clefs radius --- preferences/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/preferences/models.py b/preferences/models.py index 68acf69e..ff29241d 100644 --- a/preferences/models.py +++ b/preferences/models.py @@ -274,6 +274,9 @@ class RadiusKey(AclMixin, models.Model): ("view_radiuskey", "Peut voir un objet radiuskey"), ) + def __str__(self): + return "Clef radius " + str(self.id) + " " + str(self.comment) + class Reminder(AclMixin, models.Model): """Options pour les mails de notification de fin d'adhésion.