diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-28 11:12:29 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-28 11:12:29 +0200 |
commit | 691cb027a5c9fac6f78a3c82da06c476d240954e (patch) | |
tree | 0bf45d962905dfed603db781e5b6f67ddb30f363 /archaeological_context_records/models.py | |
parent | b344d57200efb44dd95155d69d4b4c9c45937951 (diff) | |
download | Ishtar-691cb027a5c9fac6f78a3c82da06c476d240954e.tar.bz2 Ishtar-691cb027a5c9fac6f78a3c82da06c476d240954e.zip |
JQueryJqGrid by default sorting is made using ordering in meta
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index bbfb410f8..7df766f2f 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -121,13 +121,13 @@ post_delete.connect(post_save_cache, sender=IdentificationType) class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem): SHOW_URL = 'show-contextrecord' SLUG = 'contextrecord' - TABLE_COLS = ['parcel.town', 'operation.year', - 'operation.operation_code', + TABLE_COLS = ['parcel__town', 'operation__year', + 'operation__operation_code', 'label', 'unit'] if settings.COUNTRY == 'fr': - TABLE_COLS.insert(1, 'operation.code_patriarche') + TABLE_COLS.insert(1, 'operation__code_patriarche') TABLE_COLS_FOR_OPE = ['label', 'parcel', 'unit', - 'datings.period', 'description'] + 'datings__period', 'description'] TABLE_COLS_FOR_OPE_LBL = {'section__parcel_number': _("Parcel")} CONTEXTUAL_TABLE_COLS = { 'full': { @@ -140,6 +140,7 @@ class ContextRecord(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem): EXTRA_REQUEST_KEYS = { 'parcel__town': 'parcel__town__pk', 'operation__year': 'operation__year__contains', + 'year': 'operation__year__contains', 'operation__code_patriarche': 'operation__code_patriarche', 'operation__operation_code': 'operation__operation_code', 'datings__period': 'datings__period__pk', |