diff --git a/bookwyrm/views/invite.py b/bookwyrm/views/invite.py index 0be48675..665f98ce 100644 --- a/bookwyrm/views/invite.py +++ b/bookwyrm/views/invite.py @@ -119,9 +119,10 @@ class ManageInviteRequests(View): if "accepted" in status_filters: filters.append({"invite__isnull": False, "invite__times_used__gte": 1}) - requests = requests.filter( - reduce(operator.or_, (Q(**f) for f in filters)) - ).distinct() + if filters: + requests = requests.filter( + reduce(operator.or_, (Q(**f) for f in filters)) + ).distinct() paginated = Paginator( requests,