small fixes coach trial
This commit is contained in:
@@ -325,7 +325,7 @@ def create_coaching_offer(coach, user):
|
||||
while code in codes: # pragma: no cover
|
||||
code = uuid.uuid4().hex[:10].upper()
|
||||
|
||||
if 'coach' in coach.rowerplan and get_coach_club_size(coach) < coach.clubsize:
|
||||
if is_coach(coach.user) and get_coach_club_size(coach) < coach.clubsize:
|
||||
rekwest = CoachOffer(coach=coach, user=user, code=code)
|
||||
rekwest.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user