improved privileges
This commit is contained in:
@@ -135,8 +135,8 @@ def add_member(id,rower):
|
||||
t= Team.objects.get(id=id)
|
||||
try:
|
||||
rower.team.add(t)
|
||||
except ValidationError:
|
||||
return(0,"Couldn't add member")
|
||||
except ValidationError as e:
|
||||
return(0,"Couldn't add member: "+str(e.message))
|
||||
|
||||
# code to add all workouts
|
||||
ws = Workout.objects.filter(user=rower)
|
||||
|
||||
Reference in New Issue
Block a user