Permalink
Browse files

bug fix additional speaker removal now that we're using a through table

  • Loading branch information...
1 parent 71211a4 commit 5a70473690489e0a0ff39fcf9f14d9cc2a7e8e2a @lukeman lukeman committed Oct 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 symposion/proposals/views.py
@@ -298,7 +298,8 @@ def proposal_leave(request, pk):
except ObjectDoesNotExist:
return HttpResponseForbidden()
if request.method == "POST":
- proposal.additional_speakers.remove(speaker)
+ speaking = get_object_or_404(AdditionalSpeaker, speaker=request.user.speaker_profile, proposalbase=proposal)
+ speaking.delete()
# @@@ fire off email to submitter and other speakers
messages.success(request, "You are no longer speaking on %s" % proposal.title)
return redirect("dashboard")

0 comments on commit 5a70473

Please sign in to comment.