Skip to content

Commit

Permalink
Fix quick search
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   search/selectors.py
  • Loading branch information
HadleyKing committed May 4, 2023
1 parent a5aaf69 commit 03e7f67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions search/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def controled_list(user: User):
for prefix in prefix_list:
if user.username == "AnonymousUser":
bco_list = BCO.objects.filter(prefix=prefix).values().exclude(state="DELETE").exclude(state="DRAFT")
else:
bco_list = BCO.objects.filter(prefix=prefix).values().exclude(state="DELETE")
results_list = results_list | bco_list

return results_list
Expand Down

0 comments on commit 03e7f67

Please sign in to comment.