Add missing self.object initializer

This commit is contained in:
PCoder 2019-04-03 23:04:35 +02:00
parent 76e3d95135
commit 3ed5823c93

View file

@ -1264,6 +1264,7 @@ class InvoiceDetailView(LoginRequiredMixin, DetailView):
@method_decorator(decorators)
def get(self, request, *args, **kwargs):
self.object = self.get_object()
context = self.get_context_data(object=self.get_object())
return self.render_to_response(context)