|
@ -3,6 +3,7 @@ from django.forms import modelformset_factory |
|
|
from django.http import HttpResponse |
|
|
from django.http import HttpResponse |
|
|
from formtools.wizard.views import CookieWizardView |
|
|
from formtools.wizard.views import CookieWizardView |
|
|
from django.core.mail import send_mail |
|
|
from django.core.mail import send_mail |
|
|
|
|
|
from django.conf import settings |
|
|
|
|
|
|
|
|
from .forms import ProjectForm, VolunteerForm, LibraryForm, IFGForm |
|
|
from .forms import ProjectForm, VolunteerForm, LibraryForm, IFGForm |
|
|
from .models import Project |
|
|
from .models import Project |
|
@ -90,8 +91,8 @@ class ExternView(CookieWizardView): |
|
|
send_mail( |
|
|
send_mail( |
|
|
'form filled', |
|
|
'form filled', |
|
|
'you are such a great form filler!', |
|
|
'you are such a great form filler!', |
|
|
'if-test@wikimedia.de', |
|
|
|
|
|
['benni.baermann@wikimedia.de'], |
|
|
|
|
|
|
|
|
settings.IF_EMAIL, |
|
|
|
|
|
[form.email], |
|
|
fail_silently=False, |
|
|
fail_silently=False, |
|
|
) |
|
|
) |
|
|
# - mail to IF with link to accept/decline |
|
|
# - mail to IF with link to accept/decline |
|
|