mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 13:01:08 +00:00
Fixes invite requests page with no filters
This commit is contained in:
parent
b62989b5a8
commit
fc31b3e0b0
1 changed files with 4 additions and 3 deletions
|
@ -119,9 +119,10 @@ class ManageInviteRequests(View):
|
||||||
if "accepted" in status_filters:
|
if "accepted" in status_filters:
|
||||||
filters.append({"invite__isnull": False, "invite__times_used__gte": 1})
|
filters.append({"invite__isnull": False, "invite__times_used__gte": 1})
|
||||||
|
|
||||||
requests = requests.filter(
|
if filters:
|
||||||
reduce(operator.or_, (Q(**f) for f in filters))
|
requests = requests.filter(
|
||||||
).distinct()
|
reduce(operator.or_, (Q(**f) for f in filters))
|
||||||
|
).distinct()
|
||||||
|
|
||||||
paginated = Paginator(
|
paginated = Paginator(
|
||||||
requests,
|
requests,
|
||||||
|
|
Loading…
Reference in a new issue