* Let the character_template use the url templatetag instead of hardcoded urls.
authorMatthijs Kooijman <matthijs@stdin.nl>
Sat, 9 Feb 2008 22:48:29 +0000 (23:48 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Sat, 9 Feb 2008 22:48:29 +0000 (23:48 +0100)
templates/influences/character_list.html

index 40e58611faadeab0560dd5ed2e66e01a9029d0ef..8b2c3d33fe9e0ad11bda163a46fba849caea626c 100644 (file)
@@ -7,13 +7,13 @@
 {% if object_list %}
        <ul>
        {% for character in object_list %}
-               <li><a href="character/{{ character.id }}/">{{ character.name }}</a></li>
+               <li><a href="{% url influences_character_detail character.id %}">{{ character.name }}</a></li>
        {% endfor %}
        </ul>
 {% else %}
        <p>{% trans "No characters. Add a character first, so you can submit your influences." %}</p>
 {% endif %}
 
-<p><a href="character/add">{% trans "Add character" %}</a></p>
+<p><a href="{% url influences_add_character %}">{% trans "Add character" %}</a></p>
 
 {% endblock %}