def post(self, request, *args, **kwargs):
     post_ = dict(request.POST)
     grp = get_object_or_404(ElvantoGroup, pk=post_['g_id'][0])
     bg_push_group.delay(pk=grp.pk)
     json_resp = {'g_id': grp.pk}
     return HttpResponse(
         json.dumps(json_resp),
         content_type="application/json"
     )
 def post(self, request, *args, **kwargs):
     data = request.data
     g_id = data.get('g_id')
     grp = get_object_or_404(ElvantoGroup, pk=g_id)
     bg_push_group.delay(pk=grp.pk)
     return JsonResponse({'g_id': grp.pk})
 def post(self, request, *args, **kwargs):
     data = request.data
     g_id = data.get('g_id')
     grp = get_object_or_404(ElvantoGroup, pk=g_id)
     bg_push_group.delay(pk=grp.pk)
     return JsonResponse({'g_id': grp.pk})