Mercurial > public > sg101
diff gpp/messages/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 | ab7830b067b3 |
children | b1c39788e511 |
line wrap: on
line diff
--- a/gpp/messages/urls.py Sun Dec 05 20:58:58 2010 +0000 +++ b/gpp/messages/urls.py Thu Dec 23 23:36:53 2010 +0000 @@ -8,7 +8,7 @@ url(r'^view/(\d+)/$', 'view', name='messages-view'), url(r'^reply/(\d+)/$', 'reply', name='messages-reply'), url(r'^compose/$', 'compose', name='messages-compose'), - url(r'^compose/(\w+)/$', 'compose', name='messages-compose_to'), + url(r'^compose/([\w.@+-]{1,30})/$', 'compose', name='messages-compose_to'), url(r'^delete/$', 'delete_bulk', name='messages-delete_bulk'), url(r'^delete/(\d+)/$', 'delete', name='messages-delete'), url(r'^undelete/$', 'undelete_bulk', name='messages-undelete_bulk'), @@ -20,5 +20,3 @@ (r'^$', 'redirect_to', {'url': 'inbox/'}), ) - -# vim: ts=4 sw=4