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*

6
  • If the python ORM class attributes have different names from the database columns, try this solution: stackoverflow.com/questions/27947294/… Commented Jan 14, 2015 at 16:05
  • 3
    actually, a better solution for all cases is provided by the sqlalchemy author at stackoverflow.com/a/27948279/1023033 Commented Jan 14, 2015 at 17:15
  • When I try this I get ResultProxy object has no attribute '_asdict' Commented Jul 10, 2015 at 20:17
  • @slashdottir, are you executing your query object (calling the .first() method)? Commented Jul 5, 2016 at 18:57
  • 2
    This answer makes an invalid assumption: column names don't necessarily match attribute names – see RazerM's answer. Commented Feb 6, 2018 at 9:46