From 39749cf1899bab12c98ad0444cf79305f997b231 Mon Sep 17 00:00:00 2001 From: Chris Pinard Date: Sun, 21 Jul 2024 16:06:40 -0400 Subject: [PATCH 1/2] Add collapsed space for models/schemas in fast_crud.py --- fastcrud/crud/fast_crud.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastcrud/crud/fast_crud.py b/fastcrud/crud/fast_crud.py index ca3c8f9..ef83018 100644 --- a/fastcrud/crud/fast_crud.py +++ b/fastcrud/crud/fast_crud.py @@ -104,6 +104,8 @@ class FastCRUD( Soft deletes a record if it has an `"is_deleted"` attribute (or other attribute as defined by `is_deleted_column`); otherwise, performs a hard delete. Examples: + ??? example "Models and Schemas Used Below" + ??? example "`customer/model.py`" ```python From 23c86570749e4d0ca342a6f66e2aa53d3b35a919 Mon Sep 17 00:00:00 2001 From: Chris Pinard Date: Fri, 26 Jul 2024 10:46:34 -0400 Subject: [PATCH 2/2] Move this header where it belongs. --- fastcrud/endpoint/crud_router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastcrud/endpoint/crud_router.py b/fastcrud/endpoint/crud_router.py index 8953663..8e0a8c1 100644 --- a/fastcrud/endpoint/crud_router.py +++ b/fastcrud/endpoint/crud_router.py @@ -82,8 +82,6 @@ def crud_router( ValueError: If both `included_methods` and `deleted_methods` are provided. Examples: - Basic Setup: - ??? example "Models and Schemas Used Below" ??? example "`mymodel/model.py`" @@ -171,6 +169,8 @@ def crud_router( --8<-- ``` + Basic Setup: + ```python mymodel_router = crud_router( session=async_session,