2020-10-06 13:46:22 +00:00
|
|
|
from django.core.management.base import BaseCommand
|
2020-10-06 16:53:13 +00:00
|
|
|
|
|
|
|
from uncloud_pay.models import RecurringPeriod, Product
|
2020-10-06 13:46:22 +00:00
|
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
help = 'Add standard uncloud values'
|
|
|
|
|
|
|
|
def add_arguments(self, parser):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
2020-10-06 16:53:13 +00:00
|
|
|
# Order matters, objects are somewhat dependent on each other
|
2020-10-06 13:46:22 +00:00
|
|
|
RecurringPeriod.populate_db_defaults()
|
2020-10-06 16:53:13 +00:00
|
|
|
Product.populate_db_defaults()
|