Skip to content
Browse files

Fix missing import bug by using render instead of render_to_response

  • Loading branch information...
1 parent 0c61c59 commit a342bf7ce8f756113da1fcdeaed26a7d82517f88 @paltman paltman committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 waitinglist/views.py
View
4 waitinglist/views.py
@@ -1,6 +1,5 @@
from django.core.urlresolvers import reverse
from django.http import Http404
-from django.template import RequestContext
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.models import User
@@ -37,8 +36,7 @@ def cohort_list(request):
ctx = {
"cohorts": Cohort.objects.order_by("-created")
}
- ctx = RequestContext(request, ctx)
- return render_to_response("cohorts/cohort_list.html", ctx)
+ return render(request, "cohorts/cohort_list.html", ctx)
def cohort_create(request):

0 comments on commit a342bf7

Please sign in to comment.
Something went wrong with that request. Please try again.