Skip to content

Commit 6e58435

Browse files
committed
Merge branch '3.0.x'
2 parents 7588ac2 + 38df842 commit 6e58435

File tree

5 files changed

+155
-136
lines changed

5 files changed

+155
-136
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Version 3.0.3
1212

1313
Unreleased
1414

15+
- Show helpful errors when mistakenly using multiple ``SQLAlchemy`` instances for the
16+
same app, or without calling ``init_app``. :pr:`1151`
17+
1518

1619
Version 3.0.2
1720
-------------

docs/queries.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ returned rows.
5151

5252
.. code-block:: python
5353
54-
user = db.session.execute(db.select(User).filter_by(username=username)).one()
54+
user = db.session.execute(db.select(User).filter_by(username=username)).scalar_one()
5555
5656
users = db.session.execute(db.select(User).order_by(User.username)).scalars()
5757

0 commit comments

Comments
 (0)