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

couldn't use pk for django users

parent a73a272a
......@@ -21,9 +21,9 @@ urlpatterns = patterns('',
# url(r'^blog/', include('blog.urls')),
url(r'^', include(router.urls)),
url(r'^build/', build_trajectory, name='build'),
url(r'^student/(?P<pk>[^/]+)/$', DetailStudent.as_view(),
url(r'^student/(?P<username>[^/]+)/$', DetailStudent.as_view(),
name='detail-student'),
url(r'^profile/(?P<pk>[^/]+)/$', ProfileView.as_view(),
url(r'^profile/(?P<username>[^/]+)/$', ProfileView.as_view(),
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