File diff 6e67b505013b → 40f4d1bb8d07
symposion/teams/templatetags/teams_tags.py
Show inline comments
...
 
@@ -19,13 +19,12 @@ class AvailableTeamsNode(template.Node):
 
        self.context_var = context_var
 
    
 
    def render(self, context):
 
        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"]:
 
                    teams.append(team)
 
            elif team.access == "application":
 
                if state in [None, "invited", "applied"]: