From 6187416f4c5102970d4083666ad03e18ac624b20 Mon Sep 17 00:00:00 2001 From: Charles Leifer Date: Mon, 22 Apr 2024 13:55:01 -0500 Subject: [PATCH] Additional docs fix refs #2876 --- docs/peewee/api.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/peewee/api.rst b/docs/peewee/api.rst index 421c45f24..f05973b47 100644 --- a/docs/peewee/api.rst +++ b/docs/peewee/api.rst @@ -4231,7 +4231,7 @@ Model The default return value is the number of rows modified. However, when using Postgres, Peewee will return a cursor by default that yields the primary-keys of the inserted rows. To disable this - functionality with Postgres, use an empty call to ``returning()``. + functionality with Postgres, use ``as_rowcount()``. .. py:classmethod:: insert_from(query, fields) @@ -4259,7 +4259,7 @@ Model The default return value is the number of rows modified. However, when using Postgres, Peewee will return a cursor by default that yields the primary-keys of the inserted rows. To disable this - functionality with Postgres, use an empty call to ``returning()``. + functionality with Postgres, use ``as_rowcount()``. .. py:classmethod:: replace([__data=None[, **insert]])