first changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user