Private
Public Access
1
0

more detailed privacy policy around teams and bug fix

This commit is contained in:
Sander Roosendaal
2018-03-09 09:01:00 +01:00
parent c3a50e1c3d
commit 656104a921
4 changed files with 61 additions and 4 deletions

View File

@@ -12190,8 +12190,13 @@ def plannedsession_teamcreate_view(request,timeperiod='thisweek',
teams = Team.objects.filter(manager=request.user)
teamchoices = [(team.id, team.name) for team in teams]
teaminitial = [str(teams[0].id)]
if len(teams)>0:
teamchoices = [(team.id, team.name) for team in teams]
teaminitial = [str(teams[0].id)]
else:
messages.info(request,"You have no teams established yet. We are redirecting you to the Team Management page.")
url = reverse(rower_teams_view)
return HttpResponseRedirect(url)
startdate,enddate = get_dates_timeperiod(timeperiod)