Skip to content
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
6 changes: 6 additions & 0 deletions docs/advanced/crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class User(Base):
archived_at = Column(DateTime)
```

!!! WARNING

Note that naive `datetime` such as `datetime.utcnow` is not supported by `FastCRUD` as it was [deprecated](https://github.com/python/cpython/pull/103858).

Use timezone aware `datetime`, such as `datetime.now(UTC)` instead.

You could just pass it to `FastCRUD`:

```python
Expand Down
6 changes: 6 additions & 0 deletions docs/usage/crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ create(
new_item = await item_crud.create(db, ItemCreateSchema(name="New Item"))
```

!!! WARNING

Note that naive `datetime` such as `datetime.utcnow` is not supported by `FastCRUD` as it was [deprecated](https://github.com/python/cpython/pull/103858).

Use timezone aware `datetime`, such as `datetime.now(UTC)` instead.

### 2. Get

```python
Expand Down