Fix two tiny bugs
authorCharles Connell <charles@connells.org>
Wed, 30 Apr 2014 01:29:00 +0000 (21:29 -0400)
committerCharles Connell <charles@connells.org>
Wed, 30 Apr 2014 16:29:35 +0000 (12:29 -0400)
karmaworld/apps/courses/views.py
karmaworld/templates/header.html

index 873da73c51d87f5d1778ce4aa61ccc6fd551e6db..6ba463241a32644e1be3d82785645c4125627269 100644 (file)
@@ -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)
index 162fc34275ee14e995fe91ca21674aab457e559b..8d764242124a238a1a40c3da2d31ab8752164ff8 100644 (file)
@@ -38,6 +38,7 @@
             <li class="hide-for-large-up"><a href="{% url 'account_logout' %}">Log Out</a></li>
           {% else %}
             <li><a href="{% url 'account_signup' %}">Sign Up</a></li>
+            <li class="hide-for-large-up"><a href="{% url 'account_login' %}">Log In</a></li>
           {% endif %}
         </ul>
       </section>