summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-10-29 13:07:28 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-10-29 17:15:38 +0100
commit3294e42914759e9279d725c35a6ffdbcec45050e (patch)
tree6912489bb321bab15c39e6cdf6aacd67ae46e039 /ishtar_common/models.py
parentaa54dab9fdff35273dc1b64a772bef4ffb195250 (diff)
downloadIshtar-3294e42914759e9279d725c35a6ffdbcec45050e.tar.bz2
Ishtar-3294e42914759e9279d725c35a6ffdbcec45050e.zip
🚧 datings refactoring
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py11
1 files changed, 11 insertions, 0 deletions
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}",