uncloud-mravi/uncloud/management/commands/db-add-defaults.py
Nico Schottelius 992c7c551e Make recurring period a database model
- For easier handling (foreignkeys, many2many)
- For higher flexibility (users can define their own periods)
2020-10-06 15:46:22 +02:00

11 lines
308 B
Python

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()