From 6ffe144c6060d7bfb07fd461596ac1d58d53ee8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BC=BA?= <1206709430@qq.com> Date: Mon, 15 Mar 2021 09:14:31 +0800 Subject: [PATCH 1/2] update README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d396002..a5702af 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ npm run build:prod python3 manage.py makemigrations python3 manage.py migrate 5. 初始化数据 - python3 manage.py initialization + python3 manage.py init 6. 启动项目 python3 manage.py runserver 0.0.0.0:8000 From eb419d344edc5e47de8b5f55d103d167c90fbafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BC=BA?= <1206709430@qq.com> Date: Mon, 15 Mar 2021 16:26:11 +0800 Subject: [PATCH 2/2] update dvadmin-backend/apps/vadmin/permission/management/commands/init.py. --- .../apps/vadmin/permission/management/commands/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvadmin-backend/apps/vadmin/permission/management/commands/init.py b/dvadmin-backend/apps/vadmin/permission/management/commands/init.py index 1166066..663c5a9 100644 --- a/dvadmin-backend/apps/vadmin/permission/management/commands/init.py +++ b/dvadmin-backend/apps/vadmin/permission/management/commands/init.py @@ -65,7 +65,7 @@ class Command(BaseCommand): logger.info(f'已取消[{table_name}]初始化') def add_arguments(self, parser): - parser.add_argument('init_name', nargs='+', type=str) + parser.add_argument('init_name', nargs='?', type=str) def handle(self, *args, **options): init_dict = {