Skip to content

Commit 896347b

Browse files
committed
Don't try to set the active status of emails, if we are to do that, it
has to be in a more clever way - Legacy-Id: 3746
1 parent cd3e4fe commit 896347b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

redesign/importing/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,11 @@ def possibly_import_other_priority_email(email, addr):
114114
if addr and addr.lower() != email.address.lower():
115115
try:
116116
e = Email.objects.get(address=addr)
117-
if e.person != email.person or e.active != False:
117+
if e.person != email.person:
118118
e.person = email.person
119-
e.active = False
120119
e.save()
121120
except Email.DoesNotExist:
122-
Email.objects.create(address=addr, person=email.person, active=False)
121+
Email.objects.create(address=addr, person=email.person)
123122

124123
def dont_save_queries():
125124
# prevent memory from leaking when settings.DEBUG=True

0 commit comments

Comments
 (0)