Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed bug where course search was rendering instead of redirecting

  • Loading branch information...
commit 4a74e32aff09d3d6c077fc35ad501318cd59cb37 1 parent 92bc5be
Kevin Ngo ngokevin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  course/views.py
3  course/views.py
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.