From 3294e42914759e9279d725c35a6ffdbcec45050e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 29 Oct 2025 13:07:28 +0100 Subject: 🚧 datings refactoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 0ffb24882..92abca547 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1525,6 +1525,17 @@ class IshtarSiteProfile(models.Model, Cached): "Formula to manage cached label. If not set a default formula is used." ), ) + dating_external_id = models.TextField( + _("Dating external id"), + default="{{parent_external_id}}-{% if reference %}{{reference}}" + "{% else %}{{auto_id}}{% endif %}", + help_text=_( + "Formula to manage dating external ID. " + "Change this with care. With incorrect formula, the " + "application might be unusable and import of external " + "data can be destructive." + ), + ) document_external_id = models.TextField( _("Document external id"), default="{index}", -- cgit v1.2.3