Created
March 16, 2017 18:53
-
-
Save cburmeister/897c427d746611589c258ec18233209a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def as_dict(self): | |
return {c.name: getattr(self, c.name) for c in self.__table__.columns} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment