diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-27 17:52:53 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-27 17:53:30 +0100 |
commit | ef5abb44747efb25379dd57483eb7d282244ae54 (patch) | |
tree | c04042ec88fbc80d4c331572fce6c84bfc6eafe9 /ishtar_common/models.py | |
parent | 136d69ad974a2beb94abb0b669d88054371ef57b (diff) | |
download | Ishtar-ef5abb44747efb25379dd57483eb7d282244ae54.tar.bz2 Ishtar-ef5abb44747efb25379dd57483eb7d282244ae54.zip |
Add external ids to Containers and Warehouses
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index d1d58f184..0da937f1a 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1104,6 +1104,20 @@ class IshtarSiteProfile(models.Model, Cached): u"Change this with care. With incorrect formula, the " u"application might be unusable and import of external " u"data can be destructive.")) + container_external_id = models.TextField( + _(u"Container external id"), + default="{responsible__external_id-index", + help_text=_(u"Formula to manage container external ID. " + u"Change this with care. With incorrect formula, the " + u"application might be unusable and import of external " + u"data can be destructive.")) + warehouse_external_id = models.TextField( + _(u"Warehouse external id"), + default="{name|slug}", + help_text=_(u"Formula to manage warehouse external ID. " + u"Change this with care. With incorrect formula, the " + u"application might be unusable and import of external " + u"data can be destructive.")) person_raw_name = models.TextField( _(u"Raw name for person"), default="{name|upper} {surname}", |