@require_role('admin')
def group_del(request):
 group_ids = request.GET.get('id', '')
 group_id_list = group_ids.split(',')
 for group_id in group_id_list:
  AssetGroup.objects.filter(id=group_id).delete()
 return HttpResponse(u'\u5220\u9664\u6210\u529f')

@ require_role ( 'admin' ) def group_del ( request ) : group_ids = request . GET . get ( 'id' , '' ) group_id_list = group_ids . split ( ',' ) for group_id in group_id_list : AssetGroup . objects . filter ( id = group_id ) . delete ( ) return HttpResponse ( u'\u5220\u9664\u6210\u529f' )
del a group .