Skip to content

Commit

Permalink
Remove use of deprecated query.get()
Browse files Browse the repository at this point in the history
  • Loading branch information
mklassen committed Mar 20, 2023
1 parent 46d5a6e commit 2fd44c2
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 2fd44c2

Please sign in to comment.