Skip to content

Commit

Permalink
Fix keyword-arg-before-vararg
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Jul 3, 2023
1 parent 9663894 commit f71c3e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ocw/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ class Meta:

# Create a BaseFilterSet to support initial value
class BaseFilterSet(django_filters.FilterSet):
def __init__(self, data=None, *args, **kwargs):
def __init__(self, *args, **kwargs):
try:
data = kwargs.pop('data')
data = args.pop(0)
except (KeyError, IndexError):
data = None
if data is not None:
data = data.copy()
for name, filter in self.base_filters.items():
Expand Down

0 comments on commit f71c3e9

Please sign in to comment.