I try to pass the value (from the completed form) form one view to the next view using the get method. My **view** looks like this.

```
def search(request): 
    if request.method == 'GET' and 'search' in request.GET:
        form = SearchForm(request.GET)
        if form.is_valid():
            return HttpResponseRedirect(reverse('app:search_results'))
    else:
        form = SearchForm()
    context = {'form': form}
    return render(request, 'search.html', context)

```

and simple **forms.py**

```
class SearchForm
    country = models.ChoiceField(choices=COUNTRY)
    city= models.ChoiceField(choices=CITY)

```

I tried to use args (to pass city and country to `search_results` view) `HttpResponseRedirect(reverse('app:search_results', args=[country, city]))` but my url next views looks like this:

```
http://127.0.0.1:8000/search-results/USA/new-york/

```

but I expect something like that (after redirecting to the next view):

```
http://127.0.0.1:8000/search-results/?country=USA&city=new-york&

```

How can I do this? For example, after choosing the location and type of work on this [page](https://www.indeed.com/), we see a similar url to example 2 not 1 (as on most websites).

Edit
----

urls.py

```
from django.urls import path
from . import views

urlpatterns = [
    path('', views.search, name='search'),
    path('search-results/<country>/<city>/', views.search_results, name='search_results'),

```