forked from uncloud/uncloud
Updating for products/recurring periods
This commit is contained in:
parent
c435639241
commit
9623a77907
7 changed files with 232 additions and 58 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from django.core.management.base import BaseCommand
|
||||
from uncloud_pay.models import RecurringPeriod
|
||||
|
||||
from uncloud_pay.models import RecurringPeriod, Product
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Add standard uncloud values'
|
||||
|
|
@ -8,4 +9,6 @@ class Command(BaseCommand):
|
|||
pass
|
||||
|
||||
def handle(self, *args, **options):
|
||||
# Order matters, objects are somewhat dependent on each other
|
||||
RecurringPeriod.populate_db_defaults()
|
||||
Product.populate_db_defaults()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue