from django.core.management.base import BaseCommand from merchant_ops.services.bootstrap import ensure_system_role_templates class Command(BaseCommand): help = '初始化商家子客服权限码与系统角色模板(可重复执行)' def handle(self, *args, **options): ensure_system_role_templates() self.stdout.write(self.style.SUCCESS('merchant_staff 权限与角色模板已就绪'))