summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r--ishtar_common/views.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index 2278cf47a..3ebb20569 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -371,6 +371,9 @@ def show_item(model, name):
except ObjectDoesNotExist:
return HttpResponse(None)
doc_type = 'type' in dct and dct.pop('type')
+ url_name = u"/".join(reverse('show-'+name, args=['0', '']
+ ).split('/')[:-2]) + u"/"
+ dct['current_window_url'] = url_name
date = 'date' in dct and dct.pop('date')
dct['window_id'] = "%s-%d-%s" % (name, item.pk,
datetime.datetime.now().strftime('%M%s'))