from django.core.management.base import BaseCommand from uncloud_pay.models import RecurringPeriod, Product class Command(BaseCommand): help = 'Add standard uncloud values' def add_arguments(self, parser): pass def handle(self, *args, **options): # Order matters, objects are somewhat dependent on each other RecurringPeriod.populate_db_defaults() Product.populate_db_defaults()