Make invoicelistview not inherit OrderHostingListView

This commit is contained in:
PCoder 2019-04-03 21:16:19 +02:00
parent def5a3a011
commit e843a6f857

View file

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