Edit signup email contact

This commit is contained in:
Tommi S
2023-10-04 20:04:20 +03:00
parent 6b4a00ebd8
commit 703bb91bfd
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ def submit(request, *args, **kwargs):
application = form.save() application = form.save()
custom_name = form.cleaned_data.get("custom_role_name") custom_name = form.cleaned_data.get("custom_role_name")
custom_is_board = form.cleaned_data.get("custom_role_is_board") custom_is_board = form.cleaned_data.get("custom_role_is_board")
kaehmybot_allowed = form.cleaned_data.get("kaehmybot") kaehmybot_allowed = form.cleaned_data.get("kaehmybot") == "1"
if len(custom_name) > 0: if len(custom_name) > 0:
custom_role = CustomRole(name=custom_name, is_board=custom_is_board) custom_role = CustomRole(name=custom_name, is_board=custom_is_board)
@@ -142,7 +142,7 @@ def submit(request, *args, **kwargs):
send_email(to=to_email, subject=subject, body=message, html=True) send_email(to=to_email, subject=subject, body=message, html=True)
logging.debug(f"Sent kaehmy email to recipient <{to_email}>") logging.debug(f"Sent kaehmy email to recipient <{to_email}>")
if kaehmybot_allowed or custom_is_board: if kaehmybot_allowed:
processHooks( processHooks(
message=f"Uusi New kaehmy! {name} -> {url}", eventType="kaehmy" message=f"Uusi New kaehmy! {name} -> {url}", eventType="kaehmy"
) )
+1 -1
View File
@@ -6,4 +6,4 @@
<a href={{ url }}>{{url}}</a> <a href={{ url }}>{{url}}</a>
<p>Hädässä ota yhteyttä hallitus@sahkoinsinoorikilta.fi</p> <p>Hädässä ota yhteyttä tapahtuman järjestään.</p>