Skip to content

Commit

Permalink
super
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Jul 3, 2023
1 parent d149287 commit 273375d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ocw/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 101 in ocw/tables.py

View check run for this annotation

Codecov / codecov/patch

ocw/tables.py#L101

Added line #L101 was not covered by tests


class InstanceFilter(BaseFilterSet):
Expand Down
4 changes: 2 additions & 2 deletions ocw/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Check warning on line 16 in ocw/views.py

View check run for this annotation

Codecov / codecov/patch

ocw/views.py#L16

Added line #L16 was not covered by tests
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)

Check warning on line 21 in ocw/views.py

View check run for this annotation

Codecov / codecov/patch

ocw/views.py#L21

Added line #L21 was not covered by tests
context['filter'] = self.filter
return context

Expand Down

0 comments on commit 273375d

Please sign in to comment.