Commit ae7fe14b authored by Ben Waters's avatar Ben Waters
Browse files

switched username in urls to slugs

parent c5ad85f9
...@@ -21,9 +21,9 @@ urlpatterns = patterns('', ...@@ -21,9 +21,9 @@ urlpatterns = patterns('',
# url(r'^blog/', include('blog.urls')), # url(r'^blog/', include('blog.urls')),
url(r'^', include(router.urls)), url(r'^', include(router.urls)),
url(r'^build/', build_trajectory, name='build'), url(r'^build/', build_trajectory, name='build'),
url(r'^student/(?P<username>[^/]+)/$', DetailStudent.as_view(), url(r'^student/(?P<slug>[^/]+)/$', DetailStudent.as_view(),
name='detail-student'), name='detail-student'),
url(r'^profile/(?P<username>[^/]+)/$', ProfileView.as_view(), url(r'^profile/(?P<slug>[^/]+)/$', ProfileView.as_view(),
name='profile'), name='profile'),
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment