Private
Public Access
1
0

add indication of club size to manager

This commit is contained in:
Sander Roosendaal
2017-04-12 17:39:18 +02:00
parent 29a0f37e03
commit a03c25cc98
4 changed files with 74 additions and 69 deletions

View File

@@ -6416,11 +6416,14 @@ def rower_teams_view(request,message='',successmessage=''):
requests = TeamRequest.objects.filter(user=request.user)
myrequests = TeamRequest.objects.filter(team__in=myteams)
myinvites = TeamInvite.objects.filter(team__in=myteams)
clubsize = teams.count_invites(request.user)+teams.count_club_members(request.user)
max_clubsize = r.clubsize
return render(request, 'teams.html',
{
'teams':ts,
'teams':get_my_teams(request.user),
'clubsize':clubsize,
'max_clubsize':max_clubsize,
'myteams':myteams,
'invites':invites,
'otherteams':otherteams,