app/soc/views/models/request.py
changeset 521 07b2c382a4d6
parent 519 561a438115eb
child 532 3a50bdfb75a9
--- a/app/soc/views/models/request.py	Thu Nov 20 21:18:19 2008 +0000
+++ b/app/soc/views/models/request.py	Thu Nov 20 21:57:25 2008 +0000
@@ -147,7 +147,6 @@
     new_params['list_template'] = 'soc/models/list.html'
     # TODO(SRabbelier) Change the redirect to something more useful
     new_params['list_redirect_action'] = '/'
-    new_params['list_redirect_entity'] = 'Request'
     new_params['name'] = 'Request'
     new_params['name_short'] = 'Request'
     new_params['name_plural'] = 'Request'
@@ -156,16 +155,16 @@
     params = dicts.merge(params, new_params)
     
     # get the current user
-    properties = {'account': users.get_current_user()}    
+    properties = {'account': users.get_current_user()}
     user_entity = user_logic.logic.getForFields(properties, unique=True)
     
     # only select the requests for this user that haven't been handled yet
     filter = {'requester': user_entity,
-              'accepted' : False,
+              'accepted' : True,
               'declined' : False}
     
     
-    return list(request, "Unhandled Requests", params, filter)
+    return list(request, page_name, params, filter)
 
   def _editSeed(self, request, seed):
     """See base.View._editGet().