providers/saml: improve __str__ of SAMLPropertyMapping
This commit is contained in:
parent
a57b545093
commit
404c9ef753
|
@ -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:
|
||||||
|
|
||||||
|
|
Reference in New Issue