Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
11d6cd45
Commit
11d6cd45
authored
Jun 16, 2020
by
Flavio TARSETTI
Browse files
[ui][registration][models] supervision_request signal emission
Fixes
#496
parent
1f582ca6
Pipeline
#40493
passed with stage
in 14 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/web/ui/registration/models.py
View file @
11d6cd45
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment