权限列表正确显示

This commit is contained in:
wanjia 2025-03-26 12:26:20 +08:00
parent dfef072a8c
commit 979967ed7d
4 changed files with 1183 additions and 133 deletions

View File

@ -14,7 +14,7 @@ import os
from pathlib import Path
# API 配置
API_BASE_URL = 'http://81.69.223.133:48329'
API_BASE_URL = 'http://180.163.88.62:30331'
DEPARTMENT_GROUPS = {
"技术部": ["开发组", "测试组", "运维组"],

View File

@ -34,8 +34,8 @@ urlpatterns = [
]
# 添加调试工具栏仅在DEBUG模式下
if settings.DEBUG:
import debug_toolbar
urlpatterns = [
path('__debug__/', include(debug_toolbar.urls)),
] + urlpatterns
# if settings.DEBUG:
# import debug_toolbar
# urlpatterns = [
# path('__debug__/', include(debug_toolbar.urls)),
# ] + urlpatterns

View File

@ -0,0 +1,27 @@
# Generated by Django 5.1.5 on 2025-03-26 02:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_management', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='knowledgebase',
name='owners',
),
migrations.AlterField(
model_name='knowledgebase',
name='name',
field=models.CharField(max_length=100, unique=True, verbose_name='知识库名称'),
),
migrations.AlterField(
model_name='knowledgebase',
name='user_id',
field=models.UUIDField(verbose_name='创建者ID'),
),
]

File diff suppressed because it is too large Load Diff