providers/saml: move field labels from Form into models

This commit is contained in:
Jens Langhammer
2020-02-16 12:30:26 +01:00
parent e5b85e8e6a
commit bdd1863177
3 changed files with 14 additions and 13 deletions

View File

@ -44,10 +44,6 @@ class SAMLProviderForm(forms.ModelForm):
"signing_cert",
"signing_key",
]
labels = {
"acs_url": "ACS URL",
"signing_cert": "Singing Certificate",
}
widgets = {
"name": forms.TextInput(),
"audience": forms.TextInput(),
@ -72,6 +68,3 @@ class SAMLPropertyMappingForm(forms.ModelForm):
"friendly_name": forms.TextInput(),
}
field_classes = {"values": DynamicArrayField}
help_texts = {
"values": 'String substitution uses a syntax like "{variable} test}".'
}