mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 10:07:04 +02:00
linting
This commit is contained in:
parent
19a1d60c13
commit
5d601d6991
4 changed files with 13 additions and 15 deletions
|
@ -679,9 +679,9 @@ class DomainRequest(TimeStampedModel):
|
|||
2. Partial suborganization data: Enforces a all-or-nothing rule for city/state/name fields
|
||||
when portfolio exists without selected suborganization
|
||||
|
||||
Add new domain request validation rules here to ensure they're
|
||||
Add new domain request validation rules here to ensure they're
|
||||
enforced during both model save and form submission.
|
||||
Not presently used on the domain request wizard, though.
|
||||
Not presently used on the domain request wizard, though.
|
||||
"""
|
||||
super().clean()
|
||||
# Validation logic for a suborganization request
|
||||
|
@ -717,10 +717,7 @@ class DomainRequest(TimeStampedModel):
|
|||
if not value
|
||||
}
|
||||
# Adds a validation error to each missing field
|
||||
raise ValidationError({
|
||||
k: ValidationError(v, code='required')
|
||||
for k, v in errors_dict.items()
|
||||
})
|
||||
raise ValidationError({k: ValidationError(v, code="required") for k, v in errors_dict.items()})
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
"""Save override for custom properties"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue