From: Marek Stępniowski Date: Mon, 22 Sep 2008 15:02:50 +0000 (+0200) Subject: Now searching for tag name which is a prefix of two or more tags doesn't result in... X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/51f2aabd84f98911c5987c2044de6ed072fd6c5f Now searching for tag name which is a prefix of two or more tags doesn't result in server error. --- diff --git a/apps/catalogue/urls.py b/apps/catalogue/urls.py index 1c52961fb..4910fc2da 100644 --- a/apps/catalogue/urls.py +++ b/apps/catalogue/urls.py @@ -16,6 +16,6 @@ urlpatterns = patterns('catalogue.views', # Public interface. Do not change this URLs. url(r'^lektura/(?P[a-zA-Z0-9-]+)\.html$', 'book_text', name='book_text'), url(r'^lektura/(?P[a-zA-Z0-9-]+)/$', 'book_detail', name='book_detail'), - url(r'^(?P[a-zA-Z0-9-/]+)/$', 'tagged_object_list', name='tagged_object_list'), + url(r'^(?P[a-zA-Z0-9-/]*)/$', 'tagged_object_list', name='tagged_object_list'), )