Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
53160686
Verified
Commit
53160686
authored
Jul 05, 2017
by
Sébastiaan Versteeg
Browse files
Change python formatting
parent
70c7956b
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/partners/views.py
View file @
53160686
...
...
@@ -8,6 +8,7 @@ from django.utils import timezone
from
django.core.mail
import
EmailMessage
from
partners.models
import
Partner
,
Vacancy
,
VacancyCategory
from
thaliawebsite.settings
import
settings
def
index
(
request
):
...
...
@@ -55,15 +56,15 @@ def send_vacancy_expiration_mails():
)
for
exp_vacancy
in
expired_vacancies
:
# Create Message
subject
=
"[THALIA][SPONSOR] Vacature '{}' van {} loopt af"
\
.
format
(
exp_vacancy
.
title
,
exp_vacancy
.
get_company_name
())
text_message
=
"Hallo Extern,
\n\n
de vacature van {},
"
\
"'{}' loopt
over ca
.
een maand af.
"
\
"Misschien wil
je ze contacteren om een
"
\
"nieuwe deal
te sluiten.
\n\n
"
\
"Groetjes,
\n
De Website"
\
.
format
(
exp_vacancy
.
title
,
exp_vacancy
.
get_company_name
())
recipient
=
"sponsor@thalia.nu"
subject
=
(
"[THALIA][SPONSOR] Vacature '{}' van {} loopt af"
.
format
(
exp_vacancy
.
title
,
exp_vacancy
.
get_company_name
())
)
text_message
=
(
"Hallo Extern,
\n\n
de vacature van {},
'{}' loopt "
"
over c
irc
a een maand af.
Misschien wil "
"
je ze contacteren om een
nieuwe deal "
"
te sluiten.
\n\n
Groetjes,
\n
De Website"
.
format
(
exp_vacancy
.
title
,
exp_vacancy
.
get_company_name
())
)
recipient
=
settings
.
PARTNER_EMAIL
# Send Mail
EmailMessage
(
...
...
website/thaliawebsite/settings/settings.py
View file @
53160686
...
...
@@ -230,6 +230,9 @@ SERVER_EMAIL = DEFAULT_FROM_EMAIL
# Newsletter settings
NEWSLETTER_FROM_ADDRESS
=
'nieuwsbrief@thalia.nu'
# Partners notification email
PARTNER_EMAIL
=
"samenwerking@thalia.nu"
# Photos settings
PHOTO_UPLOAD_SIZE
=
1920
,
1080
...
...
Write
Preview
Supports
Markdown
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