diff --git a/symposion/teams/templatetags/teams_tags.py b/symposion/teams/templatetags/teams_tags.py index 253da49a..62005a3c 100644 --- a/symposion/teams/templatetags/teams_tags.py +++ b/symposion/teams/templatetags/teams_tags.py @@ -22,7 +22,6 @@ class AvailableTeamsNode(template.Node): request = context["request"] teams = [] for team in Team.objects.all(): - print team state = team.get_state_for_user(request.user) if team.access == "open": if state in [None, "invited"]: diff --git a/symposion_project/templates/dashboard.html b/symposion_project/templates/dashboard.html index 5d8ba586..eefe7cc5 100644 --- a/symposion_project/templates/dashboard.html +++ b/symposion_project/templates/dashboard.html @@ -146,9 +146,14 @@ {% endif %} {% available_teams as available_teams %} - {% for team in available_team %} - {{ team }} - {% endfor %} + {% if available_teams %} +