diff gpp/bio/urls.py @ 289:0dd8989abef2

Fix regexes for usernames in various urls.py files to match valid Django usernames
author Brian Neal <bgneal@gmail.com>
date Thu, 23 Dec 2010 23:36:53 +0000
parents 7ddd60164245
children ddd69a8e07c7
line wrap: on
line diff
--- a/gpp/bio/urls.py	Sun Dec 05 20:58:58 2010 +0000
+++ b/gpp/bio/urls.py	Thu Dec 23 23:36:53 2010 +0000
@@ -2,12 +2,12 @@
 from django.conf.urls.defaults import *
 
 urlpatterns = patterns('bio.views',
-    url(r'^members/(?P<type>user|date)/$', 
-        'member_list', 
+    url(r'^members/(?P<type>user|date)/$',
+        'member_list',
         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'),
+    url(r'^view/(?P<username>[\w.@+-]{1,30})/$', 'view_profile', name='bio-view_profile'),
     url(r'^edit/$', 'edit_profile', name='bio-edit_profile'),
     url(r'^edit/elsewhere/$', 'edit_elsewhere', name='bio-edit_elsewhere'),
     url(r'^avatar/$', 'change_avatar', name='bio-change_avatar'),