mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-03 17:53:31 +02:00
Linting & cleanup
This commit is contained in:
parent
8f3f327eef
commit
a4293b4aac
2 changed files with 8 additions and 49 deletions
|
@ -608,7 +608,7 @@ class BaseOtherContactsFormSet(RegistrarFormSet):
|
|||
JOIN = "other_contacts"
|
||||
|
||||
def should_delete(self, cleaned):
|
||||
empty = (isinstance(v, str) and (v.strip() == "" or v == None) for v in cleaned.values())
|
||||
empty = (isinstance(v, str) and (v.strip() == "" or v is None) for v in cleaned.values())
|
||||
return all(empty)
|
||||
|
||||
def to_database(self, obj: DomainApplication):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue