diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-29 00:19:42 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-29 00:19:42 +0200 |
commit | a182b1c190020f1204cd0cb3918c5d1e9d2ce8c4 (patch) | |
tree | 9fe8a8572863f02229d0e7a8f1d430a564659314 /ishtar_common/views.py | |
parent | 2d959c5a5eac73e00fcf8cf251239b77bf6628a3 (diff) | |
download | Ishtar-a182b1c190020f1204cd0cb3918c5d1e9d2ce8c4.tar.bz2 Ishtar-a182b1c190020f1204cd0cb3918c5d1e9d2ce8c4.zip |
Browse sheets (refs #1219)
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r-- | ishtar_common/views.py | 3 |
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')) |