apply_async->delay

pull/1/head
parent 3b0c0f7c9c
commit 9cb6a6acdd

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

Loading…
Cancel
Save