adding some model changes around paid plans
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user