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