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-11-03 19:20:09 +0100
commit8f809337ba5d689a1910714ae3aff565ed04b41d (patch)
tree9ba8d4be67d5f517f79cb45913a197177f1f1ba5 /ishtar_common/models.py
parentaa54dab9fdff35273dc1b64a772bef4ffb195250 (diff)
downloadIshtar-8f809337ba5d689a1910714ae3aff565ed04b41d.tar.bz2
Ishtar-8f809337ba5d689a1910714ae3aff565ed04b41d.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}",