Edit signup email contact
This commit is contained in:
+2
-2
@@ -123,7 +123,7 @@ def submit(request, *args, **kwargs):
|
||||
application = form.save()
|
||||
custom_name = form.cleaned_data.get("custom_role_name")
|
||||
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:
|
||||
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)
|
||||
logging.debug(f"Sent kaehmy email to recipient <{to_email}>")
|
||||
|
||||
if kaehmybot_allowed or custom_is_board:
|
||||
if kaehmybot_allowed:
|
||||
processHooks(
|
||||
message=f"Uusi New kaehmy! {name} -> {url}", eventType="kaehmy"
|
||||
)
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user