2
0
Fork 0

only send mass messages to validated numbers

This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-05-16 19:49:01 +02:00
parent c38b194f9c
commit 920de57f2b
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def bulk_message(request):
Message.objects.bulk_create(
(
Message(text=form.cleaned_data["message"], to=helper)
for helper in Helper.objects.all()
for helper in Helper.objects.filter(number_validated=True)
)
)
messages.add_message(