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