From: Charles Connell Date: Wed, 30 Apr 2014 01:29:00 +0000 (-0400) Subject: Fix two tiny bugs X-Git-Tag: release-20150131~107 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a3ea073b4973d11fdf051bd4dc3f407378e11aa2;p=oweals%2Fkarmaworld.git Fix two tiny bugs --- diff --git a/karmaworld/apps/courses/views.py b/karmaworld/apps/courses/views.py index 873da73..6ba4632 100644 --- a/karmaworld/apps/courses/views.py +++ b/karmaworld/apps/courses/views.py @@ -81,7 +81,7 @@ class CourseListSubView(ListView): for course in self.object_list: if course.school: schools.add(course.school) - elif course.department.school: + elif course.department and course.department.school: schools.add(course.department.school) context['schools'] = sorted(list(schools), key=lambda x: x.name) diff --git a/karmaworld/templates/header.html b/karmaworld/templates/header.html index 162fc34..8d76424 100644 --- a/karmaworld/templates/header.html +++ b/karmaworld/templates/header.html @@ -38,6 +38,7 @@
  • Log Out
  • {% else %}
  • Sign Up
  • +
  • Log In
  • {% endif %}