trying another way to get rid of asterisk in one-field forms

This commit is contained in:
Kristina Yin 2023-11-21 18:31:47 -08:00
parent d5e662a78d
commit b3be667183
No known key found for this signature in database
GPG key ID: 9BB3845BB3A21584
2 changed files with 10 additions and 1 deletions

View file

@ -170,10 +170,14 @@ class TribalGovernmentForm(RegistrarForm):
)
tribe_name = forms.CharField(
label="What is the name of the tribe you represent?",
label1="What is the name of the tribe you represent? "
label2="*",
label={label1+label2}
error_messages={"required": "Enter the tribe you represent."},
)
tribe_name.widget.attrs.update({"class": "no_asterisk"})
def clean(self):
"""Needs to be either state or federally recognized."""
if not (self.cleaned_data["federally_recognized_tribe"] or self.cleaned_data["state_recognized_tribe"]):