diff --git a/GeneralApp/views.py b/GeneralApp/views.py index 7819794..ebb044b 100644 --- a/GeneralApp/views.py +++ b/GeneralApp/views.py @@ -64,8 +64,16 @@ def StaticPageView(request, url): if url == '': return MainPage(request) - elif url in ('for_movers', 'for_customers'): - Dict.update({'route_form': RouteForm(),}) + elif url == 'for_movers': + Dict.update({ + 'route_form': RouteForm(), + 'owner_type': 'customer' + }) + elif url == 'for_customers': + Dict.update({ + 'route_form': RouteForm(), + 'owner_type': 'mover' + }) # elif url == 'works': # return WorksPage(request) elif url in ['main']: diff --git a/templates/pages/p_results_find_route.html b/templates/pages/p_results_find_route.html index 21181e6..a88267a 100644 --- a/templates/pages/p_results_find_route.html +++ b/templates/pages/p_results_find_route.html @@ -21,7 +21,13 @@ {% block content %}