refactor: entity not found exceptions handler

This commit is contained in:
2025-09-16 16:56:10 +04:00
parent 276626d6f7
commit 98d3026e0d
24 changed files with 56 additions and 49 deletions

View File

@ -10,6 +10,7 @@ class ProjectRepository(
RepCrudMixin[Project, CreateProjectSchema, UpdateProjectSchema]
):
entity_class = Project
entity_not_found_msg = "Проект не найден"
def _process_get_all_stmt(self, stmt: Select) -> Select:
return stmt.order_by(Project.id)