bugs fixed, not tested
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
@@ -2225,6 +2225,7 @@ def handle_sendemail_request(email, name, code, teamname, requestor, id,
|
||||
d = {
|
||||
'requestor':requestor,
|
||||
'teamname':teamname,
|
||||
'code': code,
|
||||
'siteurl':siteurl,
|
||||
'id':id,
|
||||
'first_name':name,
|
||||
|
||||
Reference in New Issue
Block a user