mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 13:06:30 +02:00
Add unit test for requesting entity page
This commit is contained in:
parent
964bb7980b
commit
ef8d8f17bf
4 changed files with 103 additions and 40 deletions
|
@ -705,9 +705,7 @@ class DomainRequest(TimeStampedModel):
|
|||
"This suborganization already exists. "
|
||||
"Choose a new name, or select it directly if you would like to use it."
|
||||
)
|
||||
errors = {
|
||||
"requested_suborganization": ValidationError(msg)
|
||||
}
|
||||
errors = {"requested_suborganization": ValidationError(msg)}
|
||||
raise ValidationError(errors)
|
||||
elif self.portfolio and not self.sub_organization:
|
||||
# You cannot create a new suborganization without these fields
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue