From 5b4e9b733d4d7a4be43aa840e9ec0b8f1c29c3b2 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Thu, 15 Jun 2017 07:30:47 +0530 Subject: [PATCH] Tentative fix for error 500 on order details page --- hosting/templates/hosting/order_detail.html | 14 ++++++++++++++ hosting/templates/hosting/orders.html | 3 +-- hosting/views.py | 11 +++++++++-- opennebula_api/models.py | 5 +++-- 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 7705a006..5745a93c 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -4,7 +4,20 @@ {% block content %}
+ {% if messages %}
+
+
+
+ {% for message in messages %} + {{ message }} + {% endfor %} +
+
+
+ {% endif %} + {% if not error %} +

{% trans "Invoice"%}

{% trans "Order #"%} {{order.id}}

@@ -66,5 +79,6 @@ {% endif %}
+ {% endif %}
{%endblock%} diff --git a/hosting/templates/hosting/orders.html b/hosting/templates/hosting/orders.html index 42b77e88..b52e7fc0 100644 --- a/hosting/templates/hosting/orders.html +++ b/hosting/templates/hosting/orders.html @@ -33,9 +33,8 @@ {% endif %} -