providers/saml: improve __str__ of SAMLPropertyMapping

This commit is contained in:
Jens Langhammer 2020-09-18 23:50:31 +02:00
parent a57b545093
commit 404c9ef753
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ class SAMLPropertyMapping(PropertyMapping):
return SAMLPropertyMappingForm return SAMLPropertyMappingForm
def __str__(self): 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: class Meta: