From 9d9ab225a1b955f82d6158f2d902eda1b9e6e365 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 20 Nov 2017 14:35:52 +0100 Subject: [PATCH] =?UTF-8?q?del=20=E2=86=92=20remove=20for=20consistency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cfp/urls.py | 2 +- cfp/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cfp/urls.py b/cfp/urls.py index 0c696ac..343dc0a 100644 --- a/cfp/urls.py +++ b/cfp/urls.py @@ -44,7 +44,7 @@ urlpatterns = [ url(r'^staff/talks/(?P[\w\-]+)/desist/$', views.talk_acknowledgment, {'confirm': False}, name='talk-desist-by-staff'), url(r'^staff/talks/(?P[\w\-]+)/edit/$', views.TalkUpdate.as_view(), name='talk-edit'), # url(r'^staff/talks/(?P[\w\-]+)/speaker/add/$', views.talk_speaker_add, name='talk-speaker-add'), TODO WIP - url(r'^staff/talks/(?P[\w\-]+)/speaker/del/(?P[\w\-]+)/$', views.talk_speaker_del, name='talk-speaker-remove'), + url(r'^staff/talks/(?P[\w\-]+)/speaker/remove/(?P[\w\-]+)/$', views.talk_speaker_remove, name='talk-speaker-remove'), url(r'^staff/speakers/$', views.participant_list, name='participant-list'), url(r'^staff/speakers/add/$', views.ParticipantCreate.as_view(), name='participant-add'), url(r'^staff/speakers/(?P[\w\-]+)/$', views.participant_details, name='participant-details'), diff --git a/cfp/views.py b/cfp/views.py index 10f381b..d155948 100644 --- a/cfp/views.py +++ b/cfp/views.py @@ -741,7 +741,7 @@ def talk_decide(request, talk_id, accept): @staff_required -def talk_speaker_del(request, talk_id, participant_id): +def talk_speaker_remove(request, talk_id, participant_id): talk = get_object_or_404(Talk, pk=talk_id, site=request.conference.site) participant = get_object_or_404(Participant, pk=participant_id, site=request.conference.site) talk.speakers.remove(participant)