summaryrefslogtreecommitdiff
path: root/ishtar_common/views_item.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-08 11:22:33 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-24 19:42:35 +0200
commitbc470e8759a77bb8ab150403232596598dcf3b4c (patch)
tree7a64c075b68d848cbae91b28e6089223247a3c45 /ishtar_common/views_item.py
parentdc5909e6545c9014c1b8676bed6a9c8927965cc7 (diff)
downloadIshtar-bc470e8759a77bb8ab150403232596598dcf3b4c.tar.bz2
Ishtar-bc470e8759a77bb8ab150403232596598dcf3b4c.zip
Geo: warehouse and container localization are optionnal
Diffstat (limited to 'ishtar_common/views_item.py')
-rw-r--r--ishtar_common/views_item.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py
index d53498fae..a2e0844ce 100644
--- a/ishtar_common/views_item.py
+++ b/ishtar_common/views_item.py
@@ -168,7 +168,9 @@ def show_item(model, name, extra_dct=None, model_for_perms=None):
doc_type = 'type' in dct and dct.pop('type')
url_name = u"/".join(reverse('show-' + name, args=['0', '']
).split('/')[:-2]) + u"/"
- dct['CURRENCY'] = get_current_profile().currency
+ profile = get_current_profile()
+ dct['PROFILE'] = profile
+ dct['CURRENCY'] = profile.currency
dct['ENCODING'] = settings.ENCODING
dct['DOT_GENERATION'] = settings.DOT_BINARY and True
dct['current_window_url'] = url_name