apply_async->delay
This commit is contained in:
parent
3b0c0f7c9c
commit
9cb6a6acdd
|
@ -125,7 +125,7 @@ class LoginToken(models.Model):
|
||||||
# import here to break import cycle
|
# import here to break import cycle
|
||||||
from .tasks import send_message
|
from .tasks import send_message
|
||||||
|
|
||||||
send_message.apply_async((msg.pk,))
|
send_message.delay(msg.pk)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse("token_login", kwargs={"token": self.id})
|
return reverse("token_login", kwargs={"token": self.id})
|
||||||
|
|
Loading…
Reference in New Issue