wip(semantic):数据模型语义化

This commit is contained in:
zhengxinonly
2021-09-06 02:17:36 +08:00
parent 27f5d78c35
commit 00053da117
31 changed files with 189 additions and 183 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ from flask import Blueprint, render_template
from applications.common.utils.rights import authorize
from applications.models import Role
from applications.models import RightsRole
role_bp = Blueprint('role', __name__, url_prefix='/admin/role')
@@ -25,5 +25,5 @@ def power(_id):
@authorize("admin:role:edit", log=True)
@role_bp.get('/edit/<int:role_id>')
def role_editor(role_id):
role = Role.query.filter_by(id=role_id).first()
role = RightsRole.query.filter_by(id=role_id).first()
return render_template('roles/edit.html', role=role)