Private
Public Access
1
0

bugs fixed, not tested

This commit is contained in:
Sander Roosendaal
2020-04-08 12:14:14 +02:00
parent 1b8185b2c7
commit 565bdf761a
2 changed files with 3 additions and 0 deletions

View File

@@ -2730,6 +2730,8 @@ class Workout(models.Model):
def save(self, *args, **kwargs):
user = self.user
if len(self.notes)>1000:
self.notes = notes[0:950]
if not can_add_workout(user.user):
raise forms.ValidationError("Free Coach User cannot have any workouts")