Make invoicelistview not inherit OrderHostingListView

This commit is contained in:
PCoder 2019-04-03 21:16:19 +02:00
parent def5a3a011
commit e843a6f857
1 changed files with 2 additions and 1 deletions

View File

@ -1146,8 +1146,9 @@ class OrdersHostingListView(LoginRequiredMixin, ListView):
return super(OrdersHostingListView, self).get(request, *args, **kwargs)
class InvoiceListView(OrdersHostingListView):
class InvoiceListView(LoginRequiredMixin, ListView):
template_name = "hosting/invoices.html"
login_url = reverse_lazy('hosting:login')
context_object_name = "invoices"
model = MonthlyHostingBill
ordering = '-created'