Skip to content

Commit

Permalink
Fix two tiny bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesconnell committed Apr 30, 2014
1 parent bf25796 commit a3ea073
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion karmaworld/apps/courses/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_context_data(self, **kwargs):
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)
Expand Down
1 change: 1 addition & 0 deletions karmaworld/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h1 class="museo700"><a href="/"><img src="{{ STATIC_URL }}img/karmanotes_logo_s
<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>
Expand Down

0 comments on commit a3ea073

Please sign in to comment.