From 273375dfe4b5a176dd66a9c10af6b7168e5ffb3d Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Mon, 3 Jul 2023 13:05:14 +0200 Subject: [PATCH] super --- ocw/tables.py | 2 +- ocw/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ocw/tables.py b/ocw/tables.py index 1419d8f3..5abd33d2 100644 --- a/ocw/tables.py +++ b/ocw/tables.py @@ -98,7 +98,7 @@ def __init__(self, data=None, *args, **kwargs): data.setlistdefault(name, initial) else: data.setdefault(name, initial) - super(BaseFilterSet, self).__init__(data, *args, **kwargs) + super().__init__(data, *args, **kwargs) class InstanceFilter(BaseFilterSet): diff --git a/ocw/views.py b/ocw/views.py index 4422828b..255a5137 100644 --- a/ocw/views.py +++ b/ocw/views.py @@ -13,12 +13,12 @@ class FilteredSingleTableView(SingleTableView): filter_class = None def get_table_data(self): - data = super(FilteredSingleTableView, self).get_table_data() + data = super().get_table_data() self.filter = self.filter_class(self.request.GET, queryset=data) return self.filter.qs def get_context_data(self, **kwargs): - context = super(FilteredSingleTableView, self).get_context_data(**kwargs) + context = super().get_context_data(**kwargs) context['filter'] = self.filter return context