sdi/views.py
changeset 15 1c2d2e702aee
parent 14 ee492a4b9ebd
child 22 1df4b0e0d45c
--- 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: