Skip to content

Commit

Permalink
Fix version visibility filter method (#11354)
Browse files Browse the repository at this point in the history
The arguments aren't passed in by keyword ever, so this argument
signature was incorrect.
  • Loading branch information
agjohnson authored May 29, 2024
1 parent 038133f commit a78efaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/projects/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def get_version_queryset(self):
# This query is passed in at instantiation
return self.queryset

def get_visibility(self, queryset, *, value):
def get_visibility(self, queryset, field_name, value):
if value == self.VISIBILITY_HIDDEN:
return queryset.filter(hidden=True)
if value == self.VISIBILITY_VISIBLE:
Expand Down

0 comments on commit a78efaa

Please sign in to comment.