diff --git a/templates/log.html b/templates/log.html
index 8c3c95c..357ebf4 100644
--- a/templates/log.html
+++ b/templates/log.html
@@ -37,7 +37,7 @@
| {{ order.created }} |
{% if order.customer %}{% if order.customer.get_profile.image %} {% else %}{{ order.customer.first_name }} {{ order.customer.last_name|slice:":1"}}{% endif %}{% else %}Ekstern{% endif %} |
- {% for line in order.orderline_set.all %}
+ | {% for line in order.orderlines.all %}
{{ line.amount}} {{ line.product }}{% if not forloop.last %}, {% endif %}{% endfor %} |
{{ order.order_sum }} |
diff --git a/templates/modal-delete-order.html b/templates/modal-delete-order.html
index 11f8500..fc01eff 100644
--- a/templates/modal-delete-order.html
+++ b/templates/modal-delete-order.html
@@ -9,7 +9,7 @@
Orderen inneholdt:
- {% for line in order.orderline_set.all %}
+ {% for line in order.orderlines.all %}
-
{{ line.amount}}
{{ line.product }}