Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thalia
concrexit
Commits
d97b9b90
Unverified
Commit
d97b9b90
authored
Sep 30, 2016
by
Thom Wiggers
📐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use txt instead of html
parent
c82a4b15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
website/members/forms.py
website/members/forms.py
+1
-1
website/members/templates/members/email/welcome.txt
website/members/templates/members/email/welcome.txt
+1
-3
No files found.
website/members/forms.py
View file @
d97b9b90
...
...
@@ -44,7 +44,7 @@ class UserCreationForm(forms.ModelForm):
if
self
.
cleaned_data
[
'send_welcome_email'
]:
with
translation
.
override
(
user
.
member
.
language
):
email_body
=
loader
.
render_to_string
(
'members/email/welcome.
html
'
,
'members/email/welcome.
txt
'
,
{
'user'
:
user
,
'password'
:
password
})
user
.
email_user
(
_
(
'Welkom bij Studievereniging Thalia'
),
...
...
website/members/templates/members/email/welcome.
html
→
website/members/templates/members/email/welcome.
txt
View file @
d97b9b90
...
...
@@ -8,9 +8,7 @@ your profile.
Your username is: {{ user.username }}
Your password is: {{ password }}
Please also check the following information, if relevant:
Student number: {{ user.member.student_number }}
Please also check the information on your profile.
Cheers,
...
...
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