Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add collapsed space for models/schemas in fast_crud.py #132

Merged
merged 2 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading