Fix custom filename in code generation (#1030)

This commit is contained in:
Wu Clan
2026-01-22 16:33:37 +08:00
committed by GitHub
parent c8ebd1e9f6
commit 0aa63ed6e6
4 changed files with 8 additions and 7 deletions
@@ -5,7 +5,7 @@ from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy_crud_plus import CRUDPlus
from backend.app.{{ app_name }}.model import {{ class_name }}
from backend.app.{{ app_name }}.schema.{{ table_name }} import Create{{ schema_name }}Param, Update{{ schema_name }}Param
from backend.app.{{ app_name }}.schema.{{ filename }} import Create{{ schema_name }}Param, Update{{ schema_name }}Param
class CRUD{{ class_name }}(CRUDPlus[{{ class_name }}]):