# HG changeset patch # User Lennard de Rijk # Date 1236275088 0 # Node ID a3c33bef2ea87e974c7199802360ef9af875e6d7 # Parent 6ba61cce4b5267a1a2305ab97c274afc4dc32c2f Organization Proposals list now correctly sorts. Changed the index.yaml to reflect this. (Removed old entry). Also added a TODO to change this list once http://code.google.com/p/googleappengine/issues/detail?id=1100 is fixed. This means we can't properly sort when using the IN operator on another property then we are sorting on. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 6ba61cce4b52 -r a3c33bef2ea8 app/index.yaml --- a/app/index.yaml Thu Mar 05 07:49:30 2009 +0000 +++ b/app/index.yaml Thu Mar 05 17:44:48 2009 +0000 @@ -10,8 +10,10 @@ # automatically uploaded to the admin console when you next deploy # your application using appcfg.py. -# Unused in query history -- copied from input. -- kind: Work +# Used once in query history. +- kind: StudentProposal properties: - - name: inheritance_line - - name: title + - name: org + - name: status + - name: score + direction: desc diff -r 6ba61cce4b52 -r a3c33bef2ea8 app/soc/views/models/organization.py --- a/app/soc/views/models/organization.py Thu Mar 05 07:49:30 2009 +0000 +++ b/app/soc/views/models/organization.py Thu Mar 05 17:44:48 2009 +0000 @@ -200,8 +200,10 @@ ranked_params['name_plural'], org_entity.name) ranked_params['list_action'] = (redirects.getReviewRedirect, ranked_params) - filter = {'org' : org_entity, - 'status': ['pending', 'accepted']} + # TODO(ljvderijk) once sorting with IN operator is fixed, + # make this list show more + filter = {'org': org_entity, + 'status': 'pending'} # order by descending score order = ['-score']