def stop_auto_renew(user): client = Client(settings.SPREEDLY_AUTH_TOKEN_SECRET, settings.SPREEDLY_SITE_NAME) client.stop_auto_renew(user.id) return get_subscription(user)
def stop_auto_renew(user, site=DEFAULT_SITE_ALIAS): site=get_site(site) client = Client(site['SPREEDLY_AUTH_TOKEN_SECRET'], site['SPREEDLY_SITE_NAME']) client.stop_auto_renew(user.id) return get_subscription(user, site['SPREEDLY_SITE_NAME'])