forked from beba/foerderbarometer
auto formatting: removed whitespace
This commit is contained in:
parent
80d1d17ff6
commit
fe8985504e
|
|
@ -134,10 +134,10 @@ class InternView(LoginRequiredMixin, CookieWizardView):
|
|||
form.email = data['email']
|
||||
form.granted = True
|
||||
form.granted_date = date.today()
|
||||
|
||||
|
||||
if data['choice'] == 'LIT':
|
||||
form.selfbuy_give_data = data['selfbuy_give_data']
|
||||
|
||||
|
||||
form.save()
|
||||
|
||||
return done(self.request)
|
||||
|
|
@ -229,7 +229,7 @@ class ExternView(CookieWizardView):
|
|||
modell = form.save(commit=False)
|
||||
# we have to copy the data from the first form here
|
||||
# this is a bit ugly code. can we copy this without explicit writing?
|
||||
|
||||
|
||||
if data['choice'] == 'LIT':
|
||||
modell.selfbuy_give_data = data['selfbuy_give_data']
|
||||
|
||||
|
|
@ -253,10 +253,10 @@ class ExternView(CookieWizardView):
|
|||
context = { 'data': data }
|
||||
try:
|
||||
# - mail with entered data to the Volunteer
|
||||
|
||||
|
||||
txt_mail_template1 = get_template('input/ifg_volunteer_mail.txt')
|
||||
html_mail_template1 = get_template('input/ifg_volunteer_mail.html')
|
||||
|
||||
|
||||
subject1, from_email1, to1 = 'Formular ausgefüllt', IF_EMAIL, data['email']
|
||||
text_content1 = txt_mail_template1.render(context)
|
||||
html_content1 = html_mail_template1.render(context)
|
||||
|
|
@ -271,10 +271,10 @@ class ExternView(CookieWizardView):
|
|||
# [data['email']],
|
||||
# fail_silently=False)
|
||||
## - mail to IF with link to accept/decline
|
||||
|
||||
|
||||
txt_mail_template = get_template('input/if_mail.txt')
|
||||
html_mail_template = get_template('input/if_mail.html')
|
||||
|
||||
|
||||
subject, from_email, to = 'Formular ausgefüllt', IF_EMAIL, IF_EMAIL
|
||||
text_content = txt_mail_template.render(context)
|
||||
html_content = html_mail_template.render(context)
|
||||
|
|
@ -289,7 +289,7 @@ class ExternView(CookieWizardView):
|
|||
# [IF_EMAIL],
|
||||
# fail_silently=False)
|
||||
## raise SMTPException("testing pupose only")
|
||||
|
||||
|
||||
except BadHeaderError:
|
||||
modell.delete()
|
||||
return HttpResponse('Invalid header found. Data not saved!')
|
||||
|
|
|
|||
Loading…
Reference in New Issue