diff --git a/shiftregister/team/views.py b/shiftregister/team/views.py index 3bb27e6..03563b9 100644 --- a/shiftregister/team/views.py +++ b/shiftregister/team/views.py @@ -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(