Skip to content

Commit

Permalink
Merge pull request #2340 from isolovey/deprecated-query-get
Browse files Browse the repository at this point in the history
Remove use of deprecated query.get()
  • Loading branch information
alanhamlett authored Oct 15, 2023
2 parents 0b299a2 + 2fd44c2 commit 11e828a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_admin/contrib/sqla/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ def get_one(self, id):
:param id:
Model id
"""
return self.session.query(self.model).get(tools.iterdecode(id))
return self.session.get(self.model, tools.iterdecode(id))

# Error handler
def handle_view_exception(self, exc):
Expand Down

0 comments on commit 11e828a

Please sign in to comment.