# HG changeset patch # User nishanth # Date 1279256365 -19800 # Node ID 7630d7f3613abe1ce2c09606e118b46d9bacca3d # Parent f874ddbd7952bb3b8b41c459a26be99c286e3643 added template for thanking for participation in workshop diff -r f874ddbd7952 -r 7630d7f3613a sdi/views.py --- a/sdi/views.py Fri Jul 16 10:24:01 2010 +0530 +++ b/sdi/views.py Fri Jul 16 10:29:25 2010 +0530 @@ -147,7 +147,12 @@ raise Http404 if request.method == "POST": - pass + try: + has_laptop = request.POST['lap_status'] + except MultiValueDictKeyError: + return render_to_response("cnf_wsp_ptc.html", {"user":user}) + + return render_to_response("attending_wsp.html") else: return render_to_response("cnf_wsp_ptc.html", {"user":user}) diff -r f874ddbd7952 -r 7630d7f3613a templates/attending_wsp.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/attending_wsp.html Fri Jul 16 10:29:25 2010 +0530 @@ -0,0 +1,8 @@ +{% extends 'base.html' %} +{% block title %} +Thankyou +{% endblock %} +{% block content %} +Thank you for confirming your participation in the Python workshop. +{% endblock %} +