error 500 fixed

This commit is contained in:
Arvind Tiwari 2017-09-21 17:45:12 +05:30
parent a792911dea
commit db3955ab94
3 changed files with 4 additions and 4 deletions

View file

@ -58,7 +58,7 @@
.order-detail-container h4 {
font-size: 16px;
font-weight: bold;
margin-bottom: 15px;
margin-bottom: 10px;
}
.order-detail-container p {

View file

@ -96,12 +96,12 @@
{% comment %}
<p>
<span>{% trans "Period" %}</span>
<span class="pull-right">{{vm.cpu}}</span>
<span class="pull-right">{{}}</span>
</p>
{% endcomment %}
<p>
<span>{% trans "Cores" %}</span>
<span class="pull-right">{{vm.cpu}}</span>
<span class="pull-right">{{vm.cores}}</span>
</p>
<p>
<span>{% trans "Memory" %}</span>

View file

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