# HG changeset patch # User Sverre Rabbelier # Date 1239229272 0 # Node ID 37c6fe0c426c8c5841512b88ab3d03d940e3c602 # Parent 1d27ec29f1c724f54e9ec91dba64819a02be8001 Make it possible to specify the key_order for pick Patch by: Kai Blin diff -r 1d27ec29f1c7 -r 37c6fe0c426c app/soc/views/models/base.py --- a/app/soc/views/models/base.py Wed Apr 08 22:20:53 2009 +0000 +++ b/app/soc/views/models/base.py Wed Apr 08 22:21:12 2009 +0000 @@ -706,7 +706,8 @@ order = [] entities = fun(logic.getModel(), filter, order, logic) - data = [i.toDict() for i in entities] + key_order = params.get('cache_pick_order') + data = [i.toDict(key_order) for i in entities] return self.json(request, data)