From b060a004230cf0ba94b093a9ebb6a34d2868c4bb Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: Tue, 11 Aug 2009 10:42:49 +0200 Subject: Changed urls of attachments to preserve name So when you push ctrl-s in browser, it offers proper filename instead of number --- web/main/urls.py | 2 +- web/templates/view-package-props.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/main/urls.py b/web/main/urls.py index 2aa40d9..f7adcc1 100644 --- a/web/main/urls.py +++ b/web/main/urls.py @@ -9,7 +9,7 @@ urlpatterns = patterns('', (r'^browse/(?P\w+-\w+)$', prefix+'browse'), (r'^browse/(?P\w+(-\w+){0,1})/(?P.*)$', prefix+'browse'), (r'^view/package/(?P\w+(-\w*){0,1})/(?P[a-zA-Z_-]+)-(?P[0-9_.r-]+)$', prefix+'view'), - (r'^view/attachment/(?P\d+)$', prefix+'view_attachment'), + (r'^view/attachment/(?P\d+)/.*$', prefix+'view_attachment'), (r'^view/content/(?P\d+)$', prefix+'view_content'), (r'^search/by-path/(?P.*)$', prefix+'search_by_path'), (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_DIR, 'show_indexes': True}), diff --git a/web/templates/view-package-props.html b/web/templates/view-package-props.html index b262bea..ee9f27a 100644 --- a/web/templates/view-package-props.html +++ b/web/templates/view-package-props.html @@ -19,7 +19,7 @@ Compile information for: {{cpv}} {% endfor %}
Attachments: {% for attachment in prop.attachment_set.all %} - {{attachment.name}}  + {{attachment.name}}  {% endfor %}
Content: list -- cgit v1.2.3-65-gdbad