Mercurial > public > sg101
diff gpp/bio/urls.py @ 243:7ddd60164245
For #93: remove the page number from the URL. This commit fixes the shoutbox and member list. It also contains a change to downloads to add pagination to the new, popular, and highest rated views.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 16 Sep 2010 01:06:43 +0000 |
parents | ab7830b067b3 |
children | 0dd8989abef2 |
line wrap: on
line diff
--- a/gpp/bio/urls.py Wed Sep 15 03:24:01 2010 +0000 +++ b/gpp/bio/urls.py Thu Sep 16 01:06:43 2010 +0000 @@ -2,9 +2,9 @@ from django.conf.urls.defaults import * urlpatterns = patterns('bio.views', - url(r'^members/(?P<type>user|date)/page/(?P<page>\d+)/$', + url(r'^members/(?P<type>user|date)/$', 'member_list', - name='bio-members_full'), + name='bio-member_list'), url(r'^members/search/$', 'member_search', name='bio-member_search'), url(r'^me/$', 'my_profile', name='bio-me'), url(r'^view/(?P<username>\w{1,30})/$', 'view_profile', name='bio-view_profile'), @@ -13,11 +13,3 @@ url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'), url(r'^flag/(\d+)/$', 'flag_profile', name='bio-flag_profile'), ) - -urlpatterns += patterns('django.views.generic.simple', - url(r'^members/$', - 'redirect_to', - {'url': '/profile/members/user/page/1/'}, - name='bio-members'), -) -