From db3955ab94597b01f5cc404a5e00f7a0124ce964 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Thu, 21 Sep 2017 17:45:12 +0530 Subject: [PATCH] error 500 fixed --- hosting/static/hosting/css/order.css | 2 +- hosting/templates/hosting/order_detail.html | 4 ++-- hosting/views.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosting/static/hosting/css/order.css b/hosting/static/hosting/css/order.css index 0377bfac..8213610e 100644 --- a/hosting/static/hosting/css/order.css +++ b/hosting/static/hosting/css/order.css @@ -58,7 +58,7 @@ .order-detail-container h4 { font-size: 16px; font-weight: bold; - margin-bottom: 15px; + margin-bottom: 10px; } .order-detail-container p { diff --git a/hosting/templates/hosting/order_detail.html b/hosting/templates/hosting/order_detail.html index 3ee79eaa..d5599fbe 100644 --- a/hosting/templates/hosting/order_detail.html +++ b/hosting/templates/hosting/order_detail.html @@ -96,12 +96,12 @@ {% comment %}

{% trans "Period" %} - {{vm.cpu}} + {{}}

{% endcomment %}

{% trans "Cores" %} - {{vm.cpu}} + {{vm.cores}}

{% trans "Memory" %} diff --git a/hosting/views.py b/hosting/views.py index 13b9fd80..0458464d 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -644,7 +644,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, model = HostingOrder def get_object(self): - return HostingOrder.objects.filter( + return HostingOrder.objects.get( pk=self.kwargs.get('pk')) if self.kwargs.get('pk') else None def get_context_data(self, **kwargs):