diff options
Diffstat (limited to 'archaeological_finds/models.py')
| -rw-r--r-- | archaeological_finds/models.py | 25 | 
1 files changed, 25 insertions, 0 deletions
| diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index 03e54b8f2..1d59c59b1 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -213,6 +213,31 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):      if settings.COUNTRY == 'fr':          TABLE_COLS.insert(              6, 'base_finds.context_record.operation.code_patriarche') +    if settings.COUNTRY == 'fr': +        TABLE_COLS_FOR_OPE = [ +            ['base_finds.context_record.operation.code_patriarche', ], +            ['base_finds.context_record.operation.code_patriarche', ], +        ] +    else: +        TABLE_COLS_FOR_OPE = [ +            ['base_finds.context_record.operation.year', +             'base_finds.context_record.operation.operation_code'], +            ['base_finds.context_record.operation.year', +             'base_finds.context_record.operation.operation_code'] +        ] +    TABLE_COLS_FOR_OPE[0] += ['index'] +    TABLE_COLS_FOR_OPE[1] += [ +        'material_types.code', +        'base_finds.context_record.label', +        'index'] +    TABLE_COLS_FOR_OPE += [ +        'previous_id', 'label', 'material_types', +        'dating.period', 'find_number', 'object_types', +        'description'] + +    TABLE_COLS_FOR_OPE_LBL = { +        'code_patriarche__index': _("Short Id"), +        'code_patriarche__code__label__index': _("Complete ID")}      base_finds = models.ManyToManyField(BaseFind, verbose_name=_(u"Base find"),                                          related_name='find')      external_id = models.CharField(_(u"External ID"), blank=True, null=True, | 
