We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfb61e1 commit b48c2daCopy full SHA for b48c2da
1 file changed
docs/queries.rst
@@ -51,7 +51,7 @@ returned rows.
51
52
.. code-block:: python
53
54
- user = db.session.execute(db.select(User).filter_by(username=username)).one()
+ user = db.session.execute(db.select(User).filter_by(username=username)).scalar_one()
55
56
users = db.session.execute(db.select(User).order_by(User.username)).scalars()
57
0 commit comments