Skip to content
Snippets Groups Projects
Commit e1f76548 authored by magicfelix's avatar magicfelix
Browse files

Revert reformat to fix keyword argument call by Django

parent 151fdff1
No related branches found
No related tags found
1 merge request!38Resolve "Adapt to Core 4.0"
Pipeline #139337 failed
......@@ -131,10 +131,10 @@ class ClientDetailView(PermissionRequiredMixin, DetailView):
permission_required = "tezor.view_client_rule"
template_name = "tezor/client/full.html"
def get_context_data(self, obj):
def get_context_data(self, object):
context = super().get_context_data()
invoice_groups = obj.invoice_groups.all()
invoice_groups = object.invoice_groups.all()
invoice_groups_table = InvoiceGroupsTable(invoice_groups)
RequestConfig(self.request).configure(invoice_groups_table)
context["invoice_groups_table"] = invoice_groups_table
......@@ -156,10 +156,10 @@ class InvoiceGroupDetailView(PermissionRequiredMixin, DetailView):
self.invoices_action_form.execute()
return r
def get_context_data(self, obj):
def get_context_data(self, object):
context = super().get_context_data()
qs = obj.invoices.all()
qs = object.invoices.all()
invoices_filter = InvoicesFilter(self.request.GET, qs)
context["filter"] = invoices_filter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment