Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15 from mlavin/patch-1

Update url username matching to match regex allowed by Django
  • Loading branch information...
commit 394a951322bc5d2b43c9b8b88b6576f3c4c31973 2 parents dab8f20 + 39dd8bb
@coleifer coleifer authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 relationships/urls.py
View
6 relationships/urls.py
@@ -2,7 +2,7 @@
urlpatterns = patterns('relationships.views',
url(r'^$', 'relationship_redirect', name='relationship_list_base'),
- url(r'^(?P<username>[\w-]+)/(?:(?P<status_slug>[\w-]+)/)?$', 'relationship_list', name='relationship_list'),
- url(r'^add/(?P<username>[\w-]+)/(?P<status_slug>[\w-]+)/$', 'relationship_handler', {'add': True}, name='relationship_add'),
- url(r'^remove/(?P<username>[\w-]+)/(?P<status_slug>[\w-]+)/$', 'relationship_handler', {'add': False}, name='relationship_remove'),
+ url(r'^(?P<username>[\w.@+-]+)/(?:(?P<status_slug>[\w-]+)/)?$', 'relationship_list', name='relationship_list'),
+ url(r'^add/(?P<username>[\w.@+-]+)/(?P<status_slug>[\w-]+)/$', 'relationship_handler', {'add': True}, name='relationship_add'),
+ url(r'^remove/(?P<username>[\w.@+-]+)/(?P<status_slug>[\w-]+)/$', 'relationship_handler', {'add': False}, name='relationship_remove'),
)
Please sign in to comment.
Something went wrong with that request. Please try again.