Commit 061ab819 by François C.

Merge branch 'ticket_1713' into 'evolution_bdm'

sort on date_begin instead of create_date

See merge request !73
parents 2d9174d7 1082f99e
Pipeline #1514 passed with stage
in 1 minute 33 seconds
...@@ -32,7 +32,7 @@ class CagetteMembersSpace(models.Model): ...@@ -32,7 +32,7 @@ class CagetteMembersSpace(models.Model):
marshal_none_error = 'cannot marshal None unless allow_none is enabled' marshal_none_error = 'cannot marshal None unless allow_none is enabled'
try: try:
res = self.o_api.search_read('shift.registration', cond, f, limit=limit, offset=offset, res = self.o_api.search_read('shift.registration', cond, f, limit=limit, offset=offset,
order='create_date DESC') order='date_begin DESC')
except Exception as e: except Exception as e:
if not (marshal_none_error in str(e)): if not (marshal_none_error in str(e)):
res['error'] = repr(e) res['error'] = repr(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment