Permalink
Browse files

fixed old url names used in redirect

  • Loading branch information...
1 parent 5487d3c commit 59f4112472fa92e974e767944eb569fa577e778a @jtauber jtauber committed Apr 21, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 waitinglist/views.py
@@ -49,7 +49,7 @@ def cohort_create(request):
if form.is_valid():
cohort = form.save()
- return redirect("cohort_detail", cohort.id)
+ return redirect("waitinglist_cohort_detail", cohort.id)
else:
form = CohortCreate()
@@ -91,7 +91,7 @@ def cohort_member_add(request, pk):
try:
N = int(request.POST["invite_next"])
except ValueError:
- return redirect("cohort_detail", cohort.id)
+ return redirect("waitinglist_cohort_detail", cohort.id)
# people who are NOT invited or on the site already
waiting_list = WaitingListEntry.objects.exclude(
email__in=SignupCode.objects.values("email")
@@ -112,7 +112,7 @@ def cohort_member_add(request, pk):
signup_code.save()
SignupCodeCohort.objects.create(signup_code=signup_code, cohort=cohort)
- return redirect("cohort_detail", cohort.id)
+ return redirect("waitinglist_cohort_detail", cohort.id)
def cohort_send_invitations(request, pk):
@@ -123,4 +123,4 @@ def cohort_send_invitations(request, pk):
cohort = Cohort.objects.get(pk=pk)
cohort.send_invitations()
- return redirect("cohort_detail", cohort.id)
+ return redirect("waitinglist_cohort_detail", cohort.id)

0 comments on commit 59f4112

Please sign in to comment.