Private
Public Access
1
0

fixes and improvements

This commit is contained in:
Sander Roosendaal
2020-05-24 10:29:06 +02:00
parent 012b641466
commit 6f5462f013
5 changed files with 44 additions and 19 deletions

View File

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