diff options
author | Sebastian Reichel <sre@ring0.de> | 2015-04-26 13:53:35 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2015-04-26 13:53:35 +0200 |
commit | d1d67f24c3e18a85dcb54eba8ff5dea6631b604a (patch) | |
tree | 3564f230c1296f85b2cb048542ef5eb2272f10df | |
parent | bf8671691839982c0907ee9016fe9afb70f9c30e (diff) | |
download | ktt-inventory-system-d1d67f24c3e18a85dcb54eba8ff5dea6631b604a.tar.bz2 |
fix urls for django 1.7
-rw-r--r-- | inventar/templates/item.html | 8 | ||||
-rw-r--r-- | inventar/templates/search.html | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/inventar/templates/item.html b/inventar/templates/item.html index 86845e3..84a8fad 100644 --- a/inventar/templates/item.html +++ b/inventar/templates/item.html @@ -3,7 +3,7 @@ {% block content %} {% if user.is_authenticated %} - <h1>{{ name }} <a href="{% url admin:inventory_item_change id %}"><img src="/static/edit.svg" width="20" height="20" alt="[edit]"/></a></h1> + <h1>{{ name }} <a href="{% url "admin:inventory_item_change" id %}"><img src="/static/edit.svg" width="20" height="20" alt="[edit]"/></a></h1> {% else %} <h1>{{ name }}</h1> {% endif %} @@ -52,7 +52,7 @@ <td> {% for p in parentpath %} {% if p.one_barcode %} - <ul class="path"><li><a href="{% url item selectedid=p.one_barcode %}">{{ p.name }} [{{ p.barcodes }}]</a> + <ul class="path"><li><a href="{% url "item" selectedid=p.one_barcode %}">{{ p.name }} [{{ p.barcodes }}]</a> {% else %} <ul class="path"><li>{{ p.name }} [{{ p.barcodes }}] {% endif %} @@ -69,7 +69,7 @@ <td> {% for p in temporary_parentpath %} {% if p.one_barcode %} - <ul class="path"><li><a href="{% url item selectedid=p.one_barcode %}">{{ p.name }} [{{ p.barcodes }}]</a> + <ul class="path"><li><a href="{% url "item" selectedid=p.one_barcode %}">{{ p.name }} [{{ p.barcodes }}]</a> {% else %} <ul class="path"><li>{{ p.name }} [{{ p.barcodes }}] {% endif %} @@ -89,7 +89,7 @@ <ul> {% for child in children %} {% if child.one_barcode %} - <li><a href="{% url item selectedid=child.one_barcode %}">{{ child.name }} [{{ child.barcodes }}]</a></li> + <li><a href="{% url "item" selectedid=child.one_barcode %}">{{ child.name }} [{{ child.barcodes }}]</a></li> {% else %} <li>{{ child.name }} [{{ child.barcodes }}]</li> {% endif %} diff --git a/inventar/templates/search.html b/inventar/templates/search.html index 5a1f1cf..c5355d8 100644 --- a/inventar/templates/search.html +++ b/inventar/templates/search.html @@ -14,7 +14,7 @@ {% cycle 'row1' 'row2' as rowcolor silent %} <tr class="{{ rowcolor }}"> {% if result.one_barcode %} - <td><a href="{% url item selectedid=result.one_barcode %}">{{ result.name }}</a></td> + <td><a href="{% url "item" selectedid=result.one_barcode %}">{{ result.name }}</a></td> {% else %} <td>{{ result.name }}</td> {% endif %} |