forked from mirrors/bookwyrm
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,6 +119,7 @@ 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})
|
||||||
|
|
||||||
|
if filters:
|
||||||
requests = requests.filter(
|
requests = requests.filter(
|
||||||
reduce(operator.or_, (Q(**f) for f in filters))
|
reduce(operator.or_, (Q(**f) for f in filters))
|
||||||
).distinct()
|
).distinct()
|
||||||
|
|
Loading…
Reference in a new issue