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):