mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 19:20:47 +02:00
error messages! @abroddrick
This commit is contained in:
parent
7141eaed92
commit
706dd4fe2e
1 changed files with 3 additions and 3 deletions
|
@ -115,11 +115,11 @@ class RequestingEntityForm(RegistrarForm):
|
|||
if is_requesting_new_suborganization:
|
||||
# Validate custom suborganization fields
|
||||
if not cleaned_data.get("requested_suborganization"):
|
||||
self.add_error("requested_suborganization", "Enter details for your organization name.")
|
||||
self.add_error("requested_suborganization", "Requested suborganization is required")
|
||||
if not cleaned_data.get("suborganization_city"):
|
||||
self.add_error("suborganization_city", "Enter details for your city.")
|
||||
self.add_error("suborganization_city", "City is required")
|
||||
if not cleaned_data.get("suborganization_state_territory"):
|
||||
self.add_error("suborganization_state_territory", "Enter details for your state or territory.")
|
||||
self.add_error("suborganization_state_territory", "State, territory, or military post is required")
|
||||
elif not suborganization:
|
||||
self.add_error("sub_organization", "Select a suborganization.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue