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})