def list_args(request, arg):
 return [v for v in request.GET.getall(arg) if v]

def list_args ( request , arg ) : return [ v for v in request . GET . getall ( arg ) if v ]
extracts the list of arg from request .