created basic view for sending acco and added corresponding url anoop
authornishanth
Wed, 21 Jul 2010 16:57:17 +0530
branchanoop
changeset 152 86bfdb64edb5
parent 151 c5915459e48b
child 153 55f338569133
created basic view for sending acco and added corresponding url
sdi/models.py
sdi/site/urls.py
sdi/views.py
--- a/sdi/models.py	Wed Jul 21 14:32:57 2010 +0530
+++ b/sdi/models.py	Wed Jul 21 16:57:17 2010 +0530
@@ -28,7 +28,6 @@
                   ("8", "Combinatorics and Graph Theory"),                                          
                  )
 
-
 LIKELINESS_CHOICES = (('5', "Will attend at any cost"),
                       ('4', "Will attend most probably"),
                       ('3', "Unsure of attending"),
@@ -56,7 +55,8 @@
                            ("1", "Has requested for a workshop"),
                            ("0", "Does not need a workshop"))
 
-ACCO_CHOICES = (("3", "Has been given accomodation and has confirmed the stay"),
+ACCO_CHOICES = (("4", "Has requested but request has been rejected"),
+                ("3", "Has been given accomodation and has confirmed the stay"),
                 ("2", "Has been given acco but not confirmed yet"),
                 ("1", "Has requested for accomodation"),
                 ("0", "Does not need acco"))
--- a/sdi/site/urls.py	Wed Jul 21 14:32:57 2010 +0530
+++ b/sdi/site/urls.py	Wed Jul 21 16:57:17 2010 +0530
@@ -2,6 +2,7 @@
 
 from sage_days.sdi.views import register, reg_complete, list_stats, homepage, send_invi, admin_login, admin_logout
 from sage_days.sdi.views import send_workshop_confirm, confirm_wsp_participation, send_sagedays_confirm, confirm_sgd_participation
+from sage_days.sdi.views import send_acco_confirm
 
 urlpatterns = patterns('',
 		       (r'^register/$', register),
@@ -14,5 +15,6 @@
                        (r'^cnf_wsp_ptc/(\w+)/$', confirm_wsp_participation),
                        (r'^send_sgd_cnf/$', send_sagedays_confirm),
                        (r'^cnf_sgd_ptc/(\w+)/$', confirm_sgd_participation),
+                       (r'^send_acco_cnf/$', send_acco_confirm),
                       )
 
--- a/sdi/views.py	Wed Jul 21 14:32:57 2010 +0530
+++ b/sdi/views.py	Wed Jul 21 16:57:17 2010 +0530
@@ -160,6 +160,12 @@
                                                 "not_selected":not_selected_ppl,
                                                })
 
+def send_acco_confirm(request):
+    """ display list of confirmed participants who requested for accomodation
+    and let the admin decide.
+    """
+    pass
+
 def confirm_wsp_participation(request, uid):
     """ match id versus email and take lappy details.
     """