summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py9
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',