From ffedddae0c27f165e9d839edc5421e415b491330 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 7 Apr 2020 12:36:55 +0200 Subject: New container management: change ext id --- ishtar_common/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 4b4753fe3..38e5b2fb4 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2972,7 +2972,8 @@ class IshtarSiteProfile(models.Model, Cached): "data can be destructive.")) container_external_id = models.TextField( _("Container external id"), - default="{responsible__external_id}-{index}", + default="{parent_external_id}-{container_type__txt_idx}-" + "{reference}", help_text=_("Formula to manage container external ID. " "Change this with care. With incorrect formula, the " "application might be unusable and import of external " -- cgit v1.2.3