Fix unit tests
This commit is contained in:
@@ -40,5 +40,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include "webapp:footer.html" %}
|
{% include "footer.html" %}
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|||||||
@@ -35,6 +35,6 @@
|
|||||||
<body>
|
<body>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
{% include "webapp:footer.html" %}
|
{% include "footer.html" %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
|||||||
@@ -91,6 +91,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% include "webapp:footer.html" %}
|
{% include "footer.html" %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load bootstrap3 %}
|
{% load bootstrap3 %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1>{{ title }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ def application_accept(request, *args, **kwargs):
|
|||||||
subject = _("Jäsenhakemuksesi Sähköinsinöörikiltaan on hyväksytty!")
|
subject = _("Jäsenhakemuksesi Sähköinsinöörikiltaan on hyväksytty!")
|
||||||
|
|
||||||
message = render_to_string(
|
message = render_to_string(
|
||||||
"members:email_application_accept.html",
|
"email_application_accept.html",
|
||||||
{"first_name": application.first_name},
|
{"first_name": application.first_name},
|
||||||
)
|
)
|
||||||
send_email(member.email, subject, message, True)
|
send_email(member.email, subject, message, True)
|
||||||
@@ -186,7 +186,7 @@ def application_submit(request, *args, **kwargs):
|
|||||||
)
|
)
|
||||||
|
|
||||||
message = render_to_string(
|
message = render_to_string(
|
||||||
"members:email_application_submit.html",
|
"email_application_submit.html",
|
||||||
{
|
{
|
||||||
"application": application,
|
"application": application,
|
||||||
"ayy": _("Kyllä") if application.AYY else _("Ei"),
|
"ayy": _("Kyllä") if application.AYY else _("Ei"),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "members:base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
+1
-1
@@ -279,7 +279,7 @@ class JobAd(models.Model):
|
|||||||
|
|
||||||
def generateMessage(heading: str, title: str, description: str, url: str):
|
def generateMessage(heading: str, title: str, description: str, url: str):
|
||||||
return render_to_string(
|
return render_to_string(
|
||||||
"webapp:tg_message.tpl",
|
"tg_message.tpl",
|
||||||
{"heading": heading, "title": title, "description": description, "url": url},
|
{"heading": heading, "title": title, "description": description, "url": url},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -14,14 +14,14 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{% block header %}
|
{% block header %}
|
||||||
{% include "webapp:header.html" %}
|
{% include "header.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
{% include "webapp:navigation.html" %}
|
{% include "navigation.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -33,6 +33,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% block footer %}
|
{% block footer %}
|
||||||
{% include "webapp:footer.html" %}
|
{% include "footer.html" %}
|
||||||
{% endblock footer %}
|
{% endblock footer %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "webapp:base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "webapp:base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "webapp:base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "webapp:base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "webapp:base.html" %}
|
{% extends "base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "webapp:base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "webapp:base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{% extends "webapp:base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|||||||
+1
-1
@@ -106,7 +106,7 @@ def send_email(to: str, subject: str, body: str, html: bool = False):
|
|||||||
|
|
||||||
def send_signup_email(to, subject, id, uuid, content):
|
def send_signup_email(to, subject, id, uuid, content):
|
||||||
message = render_to_string(
|
message = render_to_string(
|
||||||
"webapp:signup_email.html",
|
"signup_email.html",
|
||||||
{
|
{
|
||||||
"url": f"https://{FRONTEND_URL}/signup/edit/{id}/{uuid}",
|
"url": f"https://{FRONTEND_URL}/signup/edit/{id}/{uuid}",
|
||||||
"content": markdown.markdown(content),
|
"content": markdown.markdown(content),
|
||||||
|
|||||||
Reference in New Issue
Block a user