|
@ -82,12 +82,16 @@ class ExternView(CookieWizardView): |
|
|
# write data to database |
|
|
# write data to database |
|
|
form = form.save(commit=False) |
|
|
form = form.save(commit=False) |
|
|
# this is ugly code. how can we copy this without explicit writing? |
|
|
# this is ugly code. how can we copy this without explicit writing? |
|
|
# i found no way to access the ModelForm.Meta.exclude-array |
|
|
|
|
|
|
|
|
# i found no way to access the ModelForm.Meta.exclude-tupel |
|
|
form.realname = data['realname'] |
|
|
form.realname = data['realname'] |
|
|
form.username = data['username'] |
|
|
form.username = data['username'] |
|
|
form.email = data['email'] |
|
|
form.email = data['email'] |
|
|
form.save() |
|
|
form.save() |
|
|
|
|
|
|
|
|
|
|
|
# we need to send the following mails here: |
|
|
|
|
|
# - mail with entered data to the Volunteer |
|
|
|
|
|
# - mail to IF with link to accept/decline |
|
|
|
|
|
|
|
|
return done(self.request) |
|
|
return done(self.request) |
|
|
# return render(self.request, 'saved', { |
|
|
# return render(self.request, 'saved', { |
|
|
# 'form_data': [form.cleaned_data for form in form_list], |
|
|
# 'form_data': [form.cleaned_data for form in form_list], |
|
|