Updates calls to privacy_filter
This commit is contained in:
parent
b2671e78ef
commit
97cc129478
10 changed files with 68 additions and 78 deletions
|
@ -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"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue