From 07363d3ada19b1fc69ac5c0f7cc459b4df201aa9 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 23 Dec 2013 12:19:11 +0000 Subject: [PATCH] fix single letter id document urls --- pandora/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora/urls.py b/pandora/urls.py index f9762859c..51b13f746 100644 --- a/pandora/urls.py +++ b/pandora/urls.py @@ -30,8 +30,8 @@ urlpatterns = patterns('', (r'^file/(?P.*)$', 'archive.views.lookup_file'), (r'^api/?$', include(ox.django.api.urls)), (r'^resetUI$', 'user.views.reset_ui'), - (r'^documents/(?P[A-Z0-9].+)/(?P\d*)p.jpg$', 'document.views.thumbnail'), - (r'^documents/(?P[A-Z0-9].+)/(?P.*?\..+)$', 'document.views.file'), + (r'^documents/(?P[A-Z0-9]+)/(?P\d*)p.jpg$', 'document.views.thumbnail'), + (r'^documents/(?P[A-Z0-9]+)/(?P.*?\..+)$', 'document.views.file'), (r'^edit/(?P.*?)/icon(?P\d*).jpg$', 'edit.views.icon'), (r'^list/(?P.*?)/icon(?P\d*).jpg$', 'itemlist.views.icon'), (r'^text/(?P.*?)/icon(?P\d*).jpg$', 'text.views.icon'), @@ -61,8 +61,8 @@ urlpatterns += patterns('', (r'^find$', 'urlalias.views.padma_find'), ) urlpatterns += patterns('', - (r'^(?P[A-Z0-9].+)/embed', 'app.views.embed'), - (r'^(?P[A-Z0-9].+)$', 'item.views.item'), + (r'^(?P[A-Z0-9]+)/embed', 'app.views.embed'), + (r'^(?P[A-Z0-9]+)$', 'item.views.item'), (r'^[a-z0-9].+$', 'app.views.index'), (r'^$', 'app.views.index'), (r'^.*$', 'app.views.index'),