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