making pass tests
This commit is contained in:
@@ -949,7 +949,7 @@ def check_teams_on_change(sender, **kwargs):
|
||||
#if instance.protrialexpires < datetime.date.today() and instance.plantrialexpires < datetime.date.today():
|
||||
for id in pk_set:
|
||||
team = Team.objects.get(id=id)
|
||||
if not can_join_team(instance,team):
|
||||
if not can_join_team(instance.user,team):
|
||||
raise ValidationError(
|
||||
"You cannot join a team led by a Pro, Free Coach Plan or Self-Coach user"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user