app/projrev/views/proposal.py
changeset 16 bed14c9685a5
parent 15 8c9e6c98de82
child 18 05b9e60e6a10
--- a/app/projrev/views/proposal.py	Fri Aug 07 03:40:08 2009 +0530
+++ b/app/projrev/views/proposal.py	Fri Aug 07 03:56:08 2009 +0530
@@ -240,7 +240,8 @@
 
   if not micr_code:
     template = 'projrev/proposal/list.html'
-    context['projects'] = Project.objects.all().exclude(status__exact='invalid')
+    context['projects'] = Project.objects.all().exclude(
+        status__exact='invalid').order_by('-last_updated_on')
     context['row_url'] = '/proposal/review/'
 
     return render_to_response(template, RequestContext(request, context))
@@ -278,26 +279,12 @@
   """
   """
 
-  if request.method == 'POST':
-    return rankPost(request, micr_code)
-  else:
-    return rankGet(request, micr_code)
-
-def rankPost(request, micr_code=None):
-  """
-  """
-
-  return rankGet(request, micr_code)
-
-def rankGet(request, micr_code=None):
-  """
-  """
-
   context = {}
 
   if not micr_code:
     template = 'projrev/proposal/list.html'
-    context['projects'] = Project.objects.all()
+    context['projects'] = Project.objects.all().exclude(
+        status__exact='invalid').order_by('-last_updated_on')
     context['row_url'] = '/proposal/rank/'
 
     return render_to_response(template, RequestContext(request, context))