-class Plan(models.Model):
- """ Plans are set up by administrators. """
- MONTH = 30
- YEAR = 365
- PERPETUAL = 999
- intervals = [
- (MONTH, _('a month')),
- (YEAR, _('a year')),
- (PERPETUAL, _('in perpetuity')),
- ]
-
- interval = models.SmallIntegerField(_('inteval'), choices=intervals)
- min_amount = models.DecimalField(_('min amount'), max_digits=10, decimal_places=2)
- default_amount = models.DecimalField(_('default amount'), max_digits=10, decimal_places=2)
- allow_recurring = models.BooleanField(_('allow recurring'))
- allow_one_time = models.BooleanField(_('allow one time'))
- active = models.BooleanField(_('active'), default=True)
+class Club(models.Model):
+ min_amount = models.IntegerField(_('minimum amount'))
+ min_for_year = models.IntegerField(_('minimum amount for year'))
+ single_amounts = models.CharField(_('proposed amounts for single payment'), max_length=255)
+ default_single_amount = models.IntegerField(_('default single amount'))
+ monthly_amounts = models.CharField(_('proposed amounts for monthly payments'), max_length=255)
+ default_monthly_amount = models.IntegerField(_('default monthly amount'))