def query(request): ConfigService.setup_default_values() pairs = [] for value in request.GET.getall('filter'): split = value.split(':', 1) pairs.append({'key': split[0], 'section': split[1]}) return [c for c in ConfigService.filtered_key_and_section(pairs)]
def query(request): ConfigService.setup_default_values() pairs = [] for value in request.GET.getall("filter"): split = value.split(":", 1) pairs.append({"key": split[0], "section": split[1]}) return [c for c in ConfigService.filtered_key_and_section(pairs)]