avoiding connection types shoud avoid, but not forbid them.

This commit is contained in:
Laura Klünder 2016-12-21 03:21:31 +01:00
parent 10e331bf43
commit 4536245570
5 changed files with 23 additions and 3 deletions

View file

@ -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">

View file

@ -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)