Commit 11d6cd45 authored by Flavio TARSETTI's avatar Flavio TARSETTI

[ui][registration][models] supervision_request signal emission

Fixes #496
parent 1f582ca6
Pipeline #40493 passed with stage
in 14 minutes and 42 seconds
......@@ -44,6 +44,7 @@ from django.utils.translation import ugettext_lazy as _
from ...accounts.models import SupervisionTrack
from ...accounts.models import Profile
from ...accounts.models import TemporaryUrl
from ...accounts.signals import supervision_request
from ...utils import mail
SHA1_RE = re.compile("^[a-f0-9]{40}$")
......@@ -162,6 +163,8 @@ class RegistrationManager(models.Manager):
[supervisor_user.email],
)
supervision_request.send(supervisiontrack)
return user
return False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment