sdi/views.py
author nishanth
Sat, 29 May 2010 10:24:18 +0530
changeset 14 ee492a4b9ebd
parent 9 47f72774489e
child 15 1c2d2e702aee
permissions -rw-r--r--
updated register view

from django.shortcuts import render_to_response

from sage_days.sdi.models import Registrant
from sage_days.sdi.forms import RegisterForm

def register(request):
    """ The user register page.
    """

    if request.method == "POST":
        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})