From 9cb6a6acdd04d7064f270e377e4aa40e21ad4a6d Mon Sep 17 00:00:00 2001 From: "Andreas (@xAndy) Zimmermann" Date: Wed, 27 Apr 2022 22:34:26 +0200 Subject: [PATCH] apply_async->delay --- shiftregister/app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiftregister/app/models.py b/shiftregister/app/models.py index 76146d9..9a1f6b2 100644 --- a/shiftregister/app/models.py +++ b/shiftregister/app/models.py @@ -125,7 +125,7 @@ class LoginToken(models.Model): # import here to break import cycle from .tasks import send_message - send_message.apply_async((msg.pk,)) + send_message.delay(msg.pk) def get_absolute_url(self): return reverse("token_login", kwargs={"token": self.id})