diff options
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/models.py | 4 | ||||
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 3 |
2 files changed, 6 insertions, 1 deletions
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 @@ -404,6 +404,10 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms, return _(u"OPE") @property + def external_id(self): + return self.code_patriarche + + @property def short_label(self): if settings.COUNTRY == 'fr': return self.reference 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 @@ <p class='window-refs'>{% if item.year or item.operation_code %}{{item.year|default:''}}-{{item.operation_code|default:''}}{% endif %}{% if item.code_patriarche %} – OA{{item.code_patriarche}}{% endif %} </p> <p class='window-refs'>{{item.common_name|default:''}}</p> +{% include "ishtar/blocks/sheet_external_id.html" %} <h3>{% trans "General"%}</h3> <ul class='form-flex'> -{% field_li "Old code" item.old_code %} + {% field_li "Old code" item.old_code %} <li><label>{%trans "Creation:"%}</label> <span class='value'> {{item.history_creator.ishtaruser.person}}<br/> |