Private
Public Access
1
0

adding some model changes around paid plans

This commit is contained in:
Sander Roosendaal
2018-12-18 19:22:27 +01:00
parent 6d7d9f5792
commit 75261118c2
9 changed files with 401 additions and 15 deletions

View File

@@ -537,6 +537,27 @@ weightcategories = (
)
# Plan
plans = (
('basic','basic'),
('pro','pro'),
('plan','plan'),
('coach','coach')
)
paymenttypes = (
('single','single'),
('recurring','recurring')
)
class PaidPlan(models.Model):
shortname = models.CharField(max_length=50,choices=plans)
name = models.CharField(max_length=200)
braintree_id = models.IntegerField(blank=True,null=True,default=None)
price = models.FloatField(blank=True,null=True,default=None)
paymenttype = models.CharField(max_length=50,choices=paymenttypes)
clubsize = models.IntegerField(default=0)
# Extension of User with rowing specific data
class Rower(models.Model):
adaptivetypes = mytypes.adaptivetypes
@@ -694,13 +715,6 @@ class Rower(models.Model):
blank=True,null=True)
runkeeper_auto_export = models.BooleanField(default=False)
# Plan
plans = (
('basic','basic'),
('pro','pro'),
('plan','plan'),
('coach','coach')
)
privacychoices = (
('visible','Visible'),
@@ -720,10 +734,7 @@ class Rower(models.Model):
paymenttype = models.CharField(
default='single',max_length=30,
verbose_name='Payment Type',
choices=(
('single','single'),
('recurring','recurring')
)
choices=paymenttypes,
)
planexpires = models.DateField(default=timezone.now)