Commits

Dries Desmet committed c3db8d3

Allow for prefilled form fields in contact form through query string url's

  • Participants
  • Parent commits 736021b

Comments (0)

Files changed (1)

File contact_form/views.py

             form.save(fail_silently=fail_silently)
             return HttpResponseRedirect(success_url)
     else:
-        form = form_class(request=request)
+        form = form_class(request=request, initial=request.GET)
 
     if extra_context is None:
         extra_context = {}