@require_role('admin')
def idc_del(request):
 idc_ids = request.GET.get('id', '')
 idc_id_list = idc_ids.split(',')
 for idc_id in idc_id_list:
  IDC.objects.filter(id=idc_id).delete()
 return HttpResponseRedirect(reverse('idc_list'))

@ require_role ( 'admin' ) def idc_del ( request ) : idc_ids = request . GET . get ( 'id' , '' ) idc_id_list = idc_ids . split ( ',' ) for idc_id in idc_id_list : IDC . objects . filter ( id = idc_id ) . delete ( ) return HttpResponseRedirect ( reverse ( 'idc_list' ) )
idc delete view .