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
--- 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
--- 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']