Permalink
Browse files

Fix templates url use for 1.5

  • Loading branch information...
julienr committed Mar 3, 2013
1 parent 4778256 commit 86c64051e0e259a735a7fe4aa74cae93b1413f89
Showing with 5 additions and 5 deletions.
  1. +1 −1 zivimap/templates/base.html
  2. +4 −4 zivimap/templates/index.html
@@ -36,7 +36,7 @@
{% get_available_languages as languages %}
{% for lang_code, lang_name in languages %}
{% language lang_code %}
- <a class="nav-small" href="{% url zivimap.views.index %}">{{ lang_name }}</a>
+ <a class="nav-small" href="{% url 'zivimap.views.index' %}">{{ lang_name }}</a>
{% if not forloop.last %}
|
{% endif %}
@@ -16,9 +16,9 @@
<script type="text/javascript">
// TODO: Do clean bootstraping http://backbonejs.org/#FAQ-bootstrap
- WORKSPEC_API = "{% url api_dispatch_list api_name="v1" resource_name="workspec" %}";
- ADDRESS_API = "{% url api_dispatch_list api_name="v1" resource_name="address" %}";
- SEARCH_API = "{% url api_dispatch_list api_name="v1" resource_name="search" %}";
+ WORKSPEC_API = "{% url 'api_dispatch_list' api_name="v1" resource_name="workspec" %}";
+ ADDRESS_API = "{% url 'api_dispatch_list' api_name="v1" resource_name="address" %}";
+ SEARCH_API = "{% url 'api_dispatch_list' api_name="v1" resource_name="search" %}";
var _workspecs = JSON.parse("{{ workspecs|escapejs }}");
var _addresses = JSON.parse("{{ addresses|escapejs }}");
@@ -43,7 +43,7 @@
<div id="filters_overlay">
<div id="filters_container">
<h4>{% trans 'Search options' %}</h4>
- <form action="{% url zivimap.views.index %}" method="GET">
+ <form action="{% url 'zivimap.views.index' %}" method="GET">
<ul id="search_form">
{{ search_form.as_ul }}
</ul>

0 comments on commit 86c6405

Please sign in to comment.