Commits

Anonymous committed 97559a8

Make files available to contact form

Comments (0)

Files changed (1)

contact_form/views.py

         return redirect_to_login(request.path)
     
     if request.method == 'POST':
-        form = form_class(data=request.POST, request=request)
+        form = form_class(data=request.POST, files=request.FILES, request=request)
         if form.is_valid():
             form.save(fail_silently=fail_silently)
             return HttpResponseRedirect(success_url)