From 3f3f47888d5ef75aa73a1ac11ce765a0c0dac0e2 Mon Sep 17 00:00:00 2001 From: PCoder Date: Thu, 4 Apr 2019 23:20:11 +0200 Subject: [PATCH] Fix missing codes --- hosting/templates/hosting/invoices.html | 2 +- hosting/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosting/templates/hosting/invoices.html b/hosting/templates/hosting/invoices.html index 67159e54..ed4e5ab9 100644 --- a/hosting/templates/hosting/invoices.html +++ b/hosting/templates/hosting/invoices.html @@ -1,5 +1,5 @@ {% extends "hosting/base_short.html" %} -{% load staticfiles bootstrap3 humanize i18n %} +{% load staticfiles bootstrap3 humanize i18n custom_tags %} {% block content %}
diff --git a/hosting/views.py b/hosting/views.py index 75f273ed..0afdc909 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -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] = ['--']