From 404c9ef7534ab2c70d1a68d80236df04b27060b0 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 18 Sep 2020 23:50:31 +0200 Subject: [PATCH] providers/saml: improve __str__ of SAMLPropertyMapping --- passbook/providers/saml/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passbook/providers/saml/models.py b/passbook/providers/saml/models.py index 5ec666d08..c9460cbab 100644 --- a/passbook/providers/saml/models.py +++ b/passbook/providers/saml/models.py @@ -160,7 +160,8 @@ class SAMLPropertyMapping(PropertyMapping): return SAMLPropertyMappingForm def __str__(self): - return f"SAML Property Mapping {self.saml_name}" + name = self.friendly_name if self.friendly_name != "" else self.saml_name + return f"SAML Property Mapping {self.name} ({name})" class Meta: