def METHOD_NAME(request):
    if request.method == 'POST' or len(request.GET) > 0:
        data = request.POST if request.method == 'POST' else request.GET
        form = MirrorlistForm(data=data)
        if form.is_valid():
            countries = form.cleaned_data['country']
            protocols = form.cleaned_data['protocol']
            use_status = form.cleaned_data['use_mirror_status']
            ipv4 = '4' in form.cleaned_data['ip_version']
            ipv6 = '6' in form.cleaned_data['ip_version']
            return find_mirrors(request, countries, protocols,
                                use_status, ipv4, ipv6)
    else:
        form = MirrorlistForm()
    return render(request, 'mirrors/mirrorlist_generate.html',
                  {'mirrorlist_form': form})