From c316da4f28e1b6e1c7898b6250fb84f3ef119fee Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Mon, 29 May 2017 13:56:33 -0600 Subject: [PATCH] hotfix: Spell unsubscribed correctly. --- bikeshop_project/registration/handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bikeshop_project/registration/handlers.py b/bikeshop_project/registration/handlers.py index 5f33b10..01f087e 100644 --- a/bikeshop_project/registration/handlers.py +++ b/bikeshop_project/registration/handlers.py @@ -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,