Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • This is a workaround that works for me. enter link description here Commented Oct 20, 2019 at 13:37
  • I must warn you that serializing many sqlalchemy models (such as a list of them) will be very slow. If you care about performance, select dictionaries instead. Commented Jan 9, 2021 at 21:54
  • stackoverflow.com/a/58660606/2782670 Commented Dec 27, 2021 at 20:17
  • On table models create a wrapper and in it define the to_dict method and write the coloumn data you want to serialize and use this wrapper to get the data from the database Commented Jan 21, 2022 at 0:18