Linting & cleanup

This commit is contained in:
CocoByte 2023-12-21 20:24:48 -07:00
parent 8f3f327eef
commit a4293b4aac
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
2 changed files with 8 additions and 49 deletions

View file

@ -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):