From 0e678035471c716b7c719ff586d8e885bb16819a Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Thu, 5 Apr 2012 23:45:35 +0530 Subject: urls.py fix - page can be more than a digit --- urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urls.py b/urls.py index 22ce246..4c9bdf2 100644 --- a/urls.py +++ b/urls.py @@ -32,8 +32,8 @@ urlpatterns = patterns('', # Search #url(r'^search$', 'views.pages.search'), # If page number is present in URL - url(r'^search/(?P.*@.*)\/(?P.*)\/(?P.*)\/(?P\d)$', 'views.pages.search_keyword'), - url(r'^search/(?P.*@.*)\/(?P.*)\/(?P.*)\/(?P\d)/$', 'views.pages.search_keyword'), + url(r'^search/(?P.*@.*)\/(?P.*)\/(?P.*)\/(?P\d+)$', 'views.pages.search_keyword'), + url(r'^search/(?P.*@.*)\/(?P.*)\/(?P.*)\/(?P\d+)/$', 'views.pages.search_keyword'), # Show the first page as default when no page number is present in URL url(r'^search/(?P.*@.*)\/(?P.*)\/(?P.*)$', 'views.pages.search_keyword'), url(r'^search/(?P.*@.*)\/(?P.*)\/(?P.*)/$', 'views.pages.search_keyword'), -- cgit