diff --git a/shiftregister/team/views.py b/shiftregister/team/views.py index 03563b9..be52c72 100644 --- a/shiftregister/team/views.py +++ b/shiftregister/team/views.py @@ -87,7 +87,13 @@ def bulk_message(request): try: Message.objects.bulk_create( ( - Message(text=form.cleaned_data["message"], to=helper) + Message( + text=form.cleaned_data["message"].replace( + "$token", + f"https://kontakt.rocks{helper.logintoken_set.first().get_absolute_url()}", + ), + to=helper, + ) for helper in Helper.objects.filter(number_validated=True) ) )