|
|
@ -18,8 +18,8 @@ def update_mailchimp(sender, instance, **kwargs): |
|
|
|
response = client.lists.members.create_or_update('1c664549e2', |
|
|
|
hashlib.md5(bytes(instance.email, 'utf-8')).hexdigest(), { |
|
|
|
'email_address': instance.email, |
|
|
|
'status': 'subscribed' if instance.email_consent else 'unsuscribed', |
|
|
|
'status_if_new': 'subscribed' if instance.email_consent else 'unsuscribed', |
|
|
|
'status': 'subscribed' if instance.email_consent else 'unsubscribed', |
|
|
|
'status_if_new': 'subscribed' if instance.email_consent else 'unsubscribed', |
|
|
|
'merge_fields': { |
|
|
|
'FNAME': instance.first_name, |
|
|
|
'LNAME': instance.last_name, |
|
|
|