sdi/views.py
branchanoop
changeset 149 1f53ccd82a21
parent 148 f986e4fee615
child 151 c5915459e48b
equal deleted inserted replaced
148:f986e4fee615 149:1f53ccd82a21
     5 
     5 
     6 from django.contrib.auth import authenticate, login, logout
     6 from django.contrib.auth import authenticate, login, logout
     7 
     7 
     8 from sage_days.sdi.models import Registrant, RegistrantInfo, ParticipantInfo
     8 from sage_days.sdi.models import Registrant, RegistrantInfo, ParticipantInfo
     9 from sage_days.sdi.forms import RegisterForm, SearchForm, EmailForm, LoginForm, UserSelectForm, ParticipantInfoForm
     9 from sage_days.sdi.forms import RegisterForm, SearchForm, EmailForm, LoginForm, UserSelectForm, ParticipantInfoForm
    10 from sage_days.sdi.events import send_reg_complete_mail, mail_invi, send_sgd_ptc_confirm
    10 from sage_days.sdi.events import send_reg_complete_mail, mail_invi, send_sgd_ptc_confirm, send_cnf_email
    11 from sage_days.settings import APACHE_URL_PREFIX as aup
    11 from sage_days.settings import APACHE_URL_PREFIX as aup
    12 
    12 
    13 def register(request):
    13 def register(request):
    14     """ The user register page.
    14     """ The user register page.
    15     """
    15     """
   228         participant_info.save()
   228         participant_info.save()
   229 
   229 
   230         user_info.status_of_attending_sagedays = "3"
   230         user_info.status_of_attending_sagedays = "3"
   231         user_info.save()
   231         user_info.save()
   232 
   232 
       
   233         #send_cnf_email(user)
       
   234 
   233         return render_to_response("attending_sgd.html", {"user":user})
   235         return render_to_response("attending_sgd.html", {"user":user})
   234     else:
   236     else:
   235         return render_to_response("cnf_sgd_ptc.html", {"user":user})
   237         return render_to_response("cnf_sgd_ptc.html", {"user":user})
   236 
   238 
   237 def admin_login(request):
   239 def admin_login(request):