Skip to content

Commit

Permalink
configuration: add sort on pickup_name location
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr authored and Aboubakr Aly Badr committed Mar 4, 2020
1 parent 3b6ffc7 commit 7f217ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rero_ils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,10 @@ def _(x):
fields=['name'], title='Location name',
default_order='asc'
)
RECORDS_REST_SORT_OPTIONS['locations']['pickup_name'] = dict(
fields=['pickup_name'], title='Pickup Location name',
default_order='asc'
)
RECORDS_REST_DEFAULT_SORT['locations'] = dict(
query='bestmatch', noquery='name')

Expand Down

0 comments on commit 7f217ea

Please sign in to comment.