Fix missing codes

This commit is contained in:
PCoder 2019-04-04 23:20:11 +02:00
parent 73f7831744
commit 3f3f47888d
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{% extends "hosting/base_short.html" %}
{% load staticfiles bootstrap3 humanize i18n %}
{% load staticfiles bootstrap3 humanize i18n custom_tags %}
{% block content %}
<div class="dashboard-container">

View file

@ -1172,7 +1172,7 @@ class InvoiceListView(LoginRequiredMixin, ListView):
ips_dict = {}
for mab in mabs:
try:
vm_detail = VMDetail.get(vm_id=mab.order.vm_id)
vm_detail = VMDetail.objects.get(vm_id=mab.order.vm_id)
ips_dict[mab.invoice_number] = [vm_detail.ipv6, vm_detail.ipv4]
except VMDetail.DoesNotExist as dne:
ips_dict[mab.invoice_number] = ['--']