more detailed privacy policy around teams and bug fix
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user