Private
Public Access
1
0

first changes

This commit is contained in:
2024-12-30 12:44:24 +01:00
parent e059ce9340
commit 165b8e35e0
6 changed files with 61 additions and 91 deletions

View File

@@ -862,9 +862,6 @@ weightcategories = mytypes.weightcategories
plans = (
('basic', 'basic'),
('pro', 'pro'),
('plan', 'plan'),
('coach', 'coach'),
('freecoach', 'freecoach'),
)
paymenttypes = (
@@ -1365,7 +1362,7 @@ class Rower(models.Model):
@property
def ispaid(self): # pragma: no cover
return self.rowerplan in ['pro', 'plan', 'coach']
return self.rowerplan == 'pro'
class DeactivateUserForm(forms.ModelForm):
@@ -2980,7 +2977,7 @@ class PlannedSession(models.Model):
if not is_virtualevent:
if not can_add_session(self.manager):
raise ValidationError(
"You must be a Self-Coach user or higher to create a planned session"
"You must be a Pro user or higher to create a planned session"
)
# interval string