예제 #1
0
def update_sms_campaign_status_cust(request, pk, status):
    """SMS Campaign Status (e.g. start|stop|pause|abort) can be changed from
    customer interface (via sms campaign list)"""
    smscampaign = SMSCampaign.objects.get(pk=pk)
    recipient = smscampaign.common_sms_campaign_status(status)
    sms_notification_status = get_sms_notification_status(int(status))
    frontend_send_notification(request, sms_notification_status, recipient)
    return HttpResponseRedirect(redirect_url_to_smscampaign_list)
예제 #2
0
def update_sms_campaign_status_cust(request, pk, status):
    """SMS Campaign Status (e.g. start|stop|pause|abort) can be changed from
    customer interface (via sms campaign list)"""
    smscampaign = SMSCampaign.objects.get(pk=pk)
    recipient = smscampaign.common_sms_campaign_status(status)
    sms_notification_status = get_sms_notification_status(int(status))
    frontend_send_notification(request, sms_notification_status, recipient)
    return HttpResponseRedirect(redirect_url_to_smscampaign_list)