修复 paihang_views 中 UserGuanshi 未导入的 NameError
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,7 +17,7 @@ from houtai.models import (
|
||||
ZuzhangRiTongji,
|
||||
ShangjiaRiTongji,
|
||||
)
|
||||
from yonghu.models import UserMain, UserDashou, UserShangjia, UserBoss
|
||||
from yonghu.models import UserMain, UserDashou, UserShangjia, UserBoss, UserGuanshi, UserZuzhang
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -95,9 +95,6 @@ TODAY_PROFILE_CONFIG = {
|
||||
},
|
||||
}
|
||||
|
||||
from yonghu.models import UserGuanshi, UserZuzhang # noqa: E402 — after ROLE_CONFIG
|
||||
|
||||
|
||||
def _resolve_date_range(riqi: str):
|
||||
today = date.today()
|
||||
if riqi == '今日':
|
||||
|
||||
Reference in New Issue
Block a user