Commit 4b38505e by Jason Bau

anonymous user doesn't break the index page

parent 1cedb45b
...@@ -95,7 +95,7 @@ def index(request, extra_context={}, user=None): ...@@ -95,7 +95,7 @@ def index(request, extra_context={}, user=None):
if domain == False: if domain == False:
domain = request.META.get('HTTP_HOST') domain = request.META.get('HTTP_HOST')
courses = get_courses(None, domain=domain) courses = get_courses(user, domain=domain)
courses = sort_by_announcement(courses) courses = sort_by_announcement(courses)
context = {'courses': courses} context = {'courses': courses}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment