Changeset - 4f888ffd576e
[Not reviewed]
0 1 0
James Tauber - 12 years ago 2012-08-02 02:28:57
jtauber@jtauber.com
include state in team detail context vars
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
symposion/teams/views.py
Show inline comments
...
 
@@ -9,9 +9,11 @@ from symposion.teams.models import Team
 
@login_required
 
def team_detail(request, slug):
 
    team = get_object_or_404(Team, slug=slug)
 
    if team.access == "invitation" and team.get_state_for_user(request.user) is None:
 
    state = team.get_state_for_user(request.user)
 
    if team.access == "invitation" and state is None:
 
        raise Http404()
 
    
 
    return render(request, "teams/team_detail.html", {
 
        "team": team,
 
        "state": state,
 
    })
0 comments (0 inline, 0 general)