forked from uncloud/uncloud
Make recurring period a database model
- For easier handling (foreignkeys, many2many) - For higher flexibility (users can define their own periods)
This commit is contained in:
parent
58883765d7
commit
992c7c551e
11 changed files with 588 additions and 362 deletions
11
uncloud/management/commands/db-add-defaults.py
Normal file
11
uncloud/management/commands/db-add-defaults.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from django.core.management.base import BaseCommand
|
||||
from uncloud_pay.models import RecurringPeriod
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Add standard uncloud values'
|
||||
|
||||
def add_arguments(self, parser):
|
||||
pass
|
||||
|
||||
def handle(self, *args, **options):
|
||||
RecurringPeriod.populate_db_defaults()
|
||||
Loading…
Add table
Add a link
Reference in a new issue