Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
Filter out inactive members from broadcast.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRomaa authored Jan 5, 2021
1 parent 2354976 commit c6c8dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/administration/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def view_announcement(request):
@require_staff
def view_broadcast(request):
if request.method == 'POST':
recipients = User.objects.filter(rating__in=request.POST)
recipients = User.objects.exclude(status=2).filter(rating__in=request.POST)

if request.POST.get('main_role') != 'AC':
recipients = recipients.filter(main_role=request.POST.get('main_role'))
Expand Down

0 comments on commit c6c8dd7

Please sign in to comment.