Files
ai-ticket-platform/backend/apps/accounts/management/commands/seed_permissions.py
2026-07-01 14:04:22 +08:00

12 lines
367 B
Python

from django.core.management.base import BaseCommand
from apps.accounts.bootstrap import seed_permissions, seed_roles
class Command(BaseCommand):
help = "Seed MVP permissions and default user groups."
def handle(self, *args, **options):
seed_roles(seed_permissions())
self.stdout.write(self.style.SUCCESS("Seeded permissions and groups."))