updated register view
authornishanth
Sat, 29 May 2010 10:24:18 +0530
changeset 14 ee492a4b9ebd
parent 13 d668e6002f14
child 15 1c2d2e702aee
updated register view
sdi/views.py
--- a/sdi/views.py	Sat May 29 10:20:15 2010 +0530
+++ b/sdi/views.py	Sat May 29 10:24:18 2010 +0530
@@ -8,7 +8,11 @@
     """
 
     if request.method == "POST":
-        pass
+        form = RegisterForm(request.POST)
+        if form.is_valid():
+            pass
+        else:
+            return render_to_response("register.html", {"form":form})
     else:
         form = RegisterForm()
         return render_to_response("register.html", {"form":form})