Permalink
Browse files

fixed bug where course search was rendering instead of redirecting

  • Loading branch information...
1 parent 92bc5be commit 4a74e32aff09d3d6c077fc35ad501318cd59cb37 Kevin Ngo committed Jun 12, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 course/views.py
View
3 course/views.py
@@ -25,7 +25,7 @@ def index(request):
except:
return render_to_response('course/index.html', {'course_not_found':course})
- return render_to_response('course/show.html', {'courses': courses})
+ return HttpResponseRedirect('/course/' + department + number + '/')
def show(request, department, number, status=''):
@@ -56,6 +56,7 @@ def show(request, department, number, status=''):
def register(request, crn1, crn2=""):
""" register via parsing the url and calling the add_class """
+
regclass = request.session['regclass']
error = regclass.add_class(crn1, crn2)

0 comments on commit 4a74e32

Please sign in to comment.