mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-06-09 14:04:44 +02:00
trying another way to get rid of asterisk in one-field forms
This commit is contained in:
parent
d5e662a78d
commit
b3be667183
2 changed files with 10 additions and 1 deletions
|
@ -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"]):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue