avoiding connection types shoud avoid, but not forbid them.
This commit is contained in:
parent
10e331bf43
commit
4536245570
5 changed files with 23 additions and 3 deletions
|
@ -3,6 +3,11 @@
|
|||
{% load route_render %}
|
||||
|
||||
<h2>{% trans 'Your Route' %}</h2>
|
||||
{% if route.ctypes_exception %}
|
||||
<div class="alert alert-warning">
|
||||
<strong>{% trans 'This Route contains way types you wanted to avoid.' %}</strong>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="routeparts">
|
||||
{% for routepart in route.routeparts %}
|
||||
<div class="row routepart">
|
||||
|
|
|
@ -191,7 +191,6 @@ def main(request, location=None, origin=None, destination=None):
|
|||
except AlreadyThere:
|
||||
ctx.update({'error': 'alreadythere'})
|
||||
else:
|
||||
route.create_routeparts()
|
||||
ctx.update({'route': route})
|
||||
|
||||
response = render(request, 'site/main.html', ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue