diff options
Diffstat (limited to 'ishtar_common/views_item.py')
-rw-r--r-- | ishtar_common/views_item.py | 4 |
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 |