--- a/sdi/views.py Sat May 29 10:24:18 2010 +0530
+++ b/sdi/views.py Sat May 29 10:32:09 2010 +0530
@@ -1,4 +1,4 @@
-from django.shortcuts import render_to_response
+from django.shortcuts import render_to_response, redirect
from sage_days.sdi.models import Registrant
from sage_days.sdi.forms import RegisterForm
@@ -10,7 +10,8 @@
if request.method == "POST":
form = RegisterForm(request.POST)
if form.is_valid():
- pass
+ form.save()
+ return redirect("/registration/complete")
else:
return render_to_response("register.html", {"form":form})
else: