diff --git a/symposion/speakers/urls.py b/symposion/speakers/urls.py index 19b325fc..fa7055cf 100644 --- a/symposion/speakers/urls.py +++ b/symposion/speakers/urls.py @@ -6,5 +6,5 @@ urlpatterns = patterns("symposion.speakers.views", url(r"^create/(\w+)/$", "speaker_create_token", name="speaker_create_token"), url(r"^edit/(?:(?P\d+)/)?$", "speaker_edit", name="speaker_edit"), url(r"^profile/(?P\d+)/$", "speaker_profile", name="speaker_profile"), - url(r"^staff/create/(\w+)/$", "speaker_create_staff", name="speaker_create_staff"), + url(r"^staff/create/(\d+)/$", "speaker_create_staff", name="speaker_create_staff"), ) diff --git a/symposion/speakers/views.py b/symposion/speakers/views.py index a7bdb11c..2a3de32d 100644 --- a/symposion/speakers/views.py +++ b/symposion/speakers/views.py @@ -44,8 +44,8 @@ def speaker_create(request): @login_required -def speaker_create_staff(request, username): - user = get_object_or_404(User, username=username) +def speaker_create_staff(request, pk): + user = get_object_or_404(User, pk=pk) if not request.user.is_staff: raise Http404 diff --git a/symposion/templates/conference/user_list.html b/symposion/templates/conference/user_list.html index 01204d72..22caaede 100644 --- a/symposion/templates/conference/user_list.html +++ b/symposion/templates/conference/user_list.html @@ -70,7 +70,7 @@ {% if user.speaker_profile %} {{ user.speaker_profile }} {% else %} - create + create {% endif %}