Skip to content

Commit

Permalink
Merge pull request #132 from slaarti/fast_crud_example_space
Browse files Browse the repository at this point in the history
Add collapsed space for models/schemas in `fast_crud.py`
  • Loading branch information
igorbenav authored Jul 29, 2024
2 parents 61750f1 + 23c8657 commit 3163cd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions fastcrud/crud/fast_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions fastcrud/endpoint/crud_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`"
Expand Down Expand Up @@ -171,6 +169,8 @@ def crud_router(
--8<--
```
Basic Setup:
```python
mymodel_router = crud_router(
session=async_session,
Expand Down

0 comments on commit 3163cd4

Please sign in to comment.