From dd96596c0c7ea22c7b4c637e8a53401d1c79cea2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 13 Mar 2017 13:54:25 +0100 Subject: Sheets: add ishtar ID (refs #3517) --- archaeological_operations/models.py | 4 ++++ archaeological_operations/templates/ishtar/sheet_operation.html | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index bc2169009..ebe9ae551 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -403,6 +403,10 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms, def short_class_name(self): return _(u"OPE") + @property + def external_id(self): + return self.code_patriarche + @property def short_label(self): if settings.COUNTRY == 'fr': diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index d3eb980c4..3e89c3c39 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -20,10 +20,11 @@

{% if item.year or item.operation_code %}{{item.year|default:''}}-{{item.operation_code|default:''}}{% endif %}{% if item.code_patriarche %} – OA{{item.code_patriarche}}{% endif %}

{{item.common_name|default:''}}

+{% include "ishtar/blocks/sheet_external_id.html" %}

{% trans "General"%}