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 | ac2b15d6bbfaade80562a2c6267e2e843c77d968 (patch) | |
| tree | 0bf45d962905dfed603db781e5b6f67ddb30f363 /archaeological_context_records/models.py | |
| parent | b3de02632568b4e65cbe96387e57506077c66ed8 (diff) | |
| download | Ishtar-ac2b15d6bbfaade80562a2c6267e2e843c77d968.tar.bz2 Ishtar-ac2b15d6bbfaade80562a2c6267e2e843c77d968.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', | 
