Browse Source

hotfix: Spell unsubscribed correctly.

feature/upgrade-admin-visits
Drew Larson 8 years ago
parent
commit
c316da4f28
  1. 4
      bikeshop_project/registration/handlers.py

4
bikeshop_project/registration/handlers.py

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

Loading…
Cancel
Save