Commit 7332ab6d by dima

Update goip/views.py

parent 6554d28a
Showing with 2 additions and 2 deletions
from rest_framework.parsers import JSONParser
from rest_framework.response import Response
from rest_framework.views import APIView
from .tasks import list_send_sms
from .tasks import list_send_sms_task
from .models import SmsGroup
......@@ -13,7 +13,7 @@ class SendSms(APIView):
numbers = request.data['numbers']
group_id = SmsGroup.objects.create()
list_send_sms.delay(group_id, numbers, text)
list_send_sms_task.delay(group_id, numbers, text)
return Response({'group_id': str(group_id)})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment