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

This commit is contained in:
Kristina Yin 2023-11-21 18:42:27 -08:00
parent eaaf8e16d4
commit 9773abe127
No known key found for this signature in database
GPG key ID: 9BB3845BB3A21584
2 changed files with 5 additions and 8 deletions

View file

@ -170,14 +170,10 @@ class TribalGovernmentForm(RegistrarForm):
)
tribe_name = forms.CharField(
label1="What is the name of the tribe you represent? ",
label2="*",
label={label1+label2},
label="What is the name of the tribe you represent? ",
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"]):