def update_email_preferences(self, instance, attr, value): if self.MAP_MAIL[attr] == OSF_HELP_LIST: update_osf_help_mails_subscription(user=instance, subscribe=value) else: update_mailchimp_subscription(instance, self.MAP_MAIL[attr], value) instance.save()
def update_email_preferences(self, instance, attr, value): if self.MAP_MAIL[attr] == OSF_HELP_LIST: update_osf_help_mails_subscription(user=instance, subscribe=value) else: update_mailchimp_subscription(instance, self.MAP_MAIL[attr], value) instance.save()