--- a/sdi/views.py Sat May 29 17:26:48 2010 +0530
+++ b/sdi/views.py Sat May 29 18:41:04 2010 +0530
@@ -1,7 +1,7 @@
from django.shortcuts import render_to_response, redirect
from sage_days.sdi.models import Registrant
-from sage_days.sdi.forms import RegisterForm
+from sage_days.sdi.forms import RegisterForm, SearchForm
def register(request):
""" The user register page.
@@ -28,4 +28,12 @@
""" List the statiscs of registered participants.
"""
- return redirect("/registration/complete")
+ if request.method == "POST":
+ form = SearchForm(request.POST)
+ if form.is_valid():
+ pass
+ else:
+ return render_to_response("list_stats.html", {"form":form})
+ else:
+ form = SearchForm()
+ return render_to_response("list_stats.html", {"form":form})