Commit 3e82d90f authored by Michal Čihař's avatar Michal Čihař

Allow to preseed subject from request

parent e917018f
......@@ -35,6 +35,8 @@ def contact(request):
if request.user.is_authenticated():
initial['name'] = request.user.get_full_name()
initial['email'] = request.user.email
if 'subject' in request.GET:
initial['subject'] = request.GET['subject']
form = ContactForm(initial = initial)
return render_to_response('contact.html', RequestContext(request, {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment