only send mass messages to validated numbers
This commit is contained in:
parent
c38b194f9c
commit
920de57f2b
|
@ -88,7 +88,7 @@ def bulk_message(request):
|
||||||
Message.objects.bulk_create(
|
Message.objects.bulk_create(
|
||||||
(
|
(
|
||||||
Message(text=form.cleaned_data["message"], to=helper)
|
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(
|
messages.add_message(
|
||||||
|
|
Loading…
Reference in New Issue