added freecoach to coach priviliges
This commit is contained in:
@@ -2580,7 +2580,7 @@ class Workout(models.Model):
|
||||
def save(self, *args, **kwargs):
|
||||
user = self.user
|
||||
if self.user.rowerplan == 'freecoach':
|
||||
raise ValidationError("Free Coach User cannot have any workouts")
|
||||
raise forms.ValidationError("Free Coach User cannot have any workouts")
|
||||
|
||||
super(Workout, self).save(*args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user