From 47f4eaa7509693e0a64ad3ee69b7a312df541127 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 20 Jan 2023 11:46:57 +0100 Subject: Warehouse: new slug field to prevent ID change when name is changed --- ishtar_common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index fc2487d7b..5dc325e4e 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1349,7 +1349,7 @@ class IshtarSiteProfile(models.Model, Cached): ) warehouse_external_id = models.TextField( _("Warehouse external id"), - default="{name|slug}", + default="{slug}", help_text=_( "Formula to manage warehouse external ID. " "Change this with care. With incorrect formula, the " -- cgit v1.2.3