removing some remnants of coach and plan
This commit is contained in:
@@ -21,9 +21,6 @@ def team_view(request, team_id=0, userid=0):
|
||||
|
||||
t = get_object_or_404(Team, pk=team_id)
|
||||
|
||||
# if r.rowerplan == 'basic' and t.manager.rower.rowerplan != 'coach':
|
||||
# raise PermissionDenied("You need to be on a Paid Plan to see or join this team")
|
||||
|
||||
q = User.objects.filter(rower__isnull=False, rower__team__in=myteams).distinct(
|
||||
).exclude(rower__team__name=t.name)
|
||||
mygroups = [request.user.rower.mycoachgroup]
|
||||
@@ -176,7 +173,7 @@ def get_teams(request):
|
||||
rower=r).exclude(manager=request.user).order_by('name')
|
||||
|
||||
if user_is_basic(request.user):
|
||||
otherteams = otherteams.filter(manager__rower__rowerplan='coach')
|
||||
otherteams = otherteams.filter(manager__rower__rowerplan='pro')
|
||||
|
||||
return myteams, memberteams, otherteams
|
||||
|
||||
@@ -224,7 +221,7 @@ def rower_teams_view(request): # pragma: no cover
|
||||
coaches = teams.rower_get_coaches(r)
|
||||
|
||||
potentialcoaches = [
|
||||
t.manager for t in memberteams if t.manager not in coaches and 'coach' in t.manager.rower.rowerplan]
|
||||
t.manager for t in memberteams if t.manager not in coaches and 'pro' in t.manager.rower.rowerplan]
|
||||
offercoaches = [
|
||||
r.user for r in Rower.objects.all().exclude(user=request.user) if r.can_coach()
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user