2
0
Fork 0

apply_async->delay

This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-04-27 22:34:26 +02:00
parent 3b0c0f7c9c
commit 9cb6a6acdd
1 changed files with 1 additions and 1 deletions

View File

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