made the previous feature more easier with lists. anoop
authoranoop
Mon, 02 Aug 2010 21:23:37 +0530
branchanoop
changeset 206 f2d738abba0d
parent 205 3381ac722e36
child 207 4a3c8ca0e9df
made the previous feature more easier with lists.
sdi/views.py
--- a/sdi/views.py	Mon Aug 02 21:06:34 2010 +0530
+++ b/sdi/views.py	Mon Aug 02 21:23:37 2010 +0530
@@ -229,7 +229,8 @@
     elif status != "2":
         raise Http404
 
-    if int(uid) < 157 and (int(uid)!=150 or int(uid)!=151):
+    special_request = [150,151]
+    if int(uid) < 157 and int(uid) not in special_request:
         return render_to_response("late_for_confirmation.html", {"user":user})
 
     participant_info = ParticipantInfo()