0.6.7
find routes page
This commit is contained in:
@@ -15,12 +15,16 @@ from .forms import *
|
|||||||
def route_search_results_View(request):
|
def route_search_results_View(request):
|
||||||
|
|
||||||
Dict = {}
|
Dict = {}
|
||||||
|
data = None
|
||||||
|
|
||||||
routes = get_routes_Dict()
|
if request.GET:
|
||||||
|
data = request.GET.dict()
|
||||||
|
|
||||||
|
routes = get_routes_Dict(data=data)
|
||||||
if routes:
|
if routes:
|
||||||
Dict = {
|
Dict = {
|
||||||
'routes': routes['routes'],
|
'routes': routes['routes'],
|
||||||
'form': RouteForm()
|
'form': RouteForm(initial=data)
|
||||||
}
|
}
|
||||||
|
|
||||||
t = loader.get_template('pages/p_results_find_route.html')
|
t = loader.get_template('pages/p_results_find_route.html')
|
||||||
|
|||||||
Reference in New Issue
Block a user