Permalink
Browse files

Descriptive names on url patterns to allow for reverse to work

  • Loading branch information...
1 parent f1990d4 commit fefef43e3a6433c44cc36fd6f0a7a7791586fde4 @coleifer committed Mar 29, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 relationships/urls.py
@@ -2,6 +2,6 @@
urlpatterns = patterns('relationships.views',
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_handler'),
- url(r'^remove/(?P<username>[\w-]+)/(?P<status_slug>[\w-]+)/$', 'relationship_handler', {'add': False}, name='relationship_handler'),
+ 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'),
)

0 comments on commit fefef43

Please sign in to comment.