Updates calls to privacy_filter

This commit is contained in:
Mouse Reeve
2021-10-06 10:37:09 -07:00
parent b2671e78ef
commit 97cc129478
10 changed files with 68 additions and 78 deletions

View File

@ -107,9 +107,7 @@ class BookWyrmModel(models.Model):
raise PermissionDenied()
@classmethod
def privacy_filter(
cls, viewer, privacy_levels=None, following_only=False, **filters
):
def privacy_filter(cls, viewer, privacy_levels=None, following_only=False):
"""filter objects that have "user" and "privacy" fields"""
queryset = cls.objects
if hasattr(queryset, "select_subclasses"):