I have a model class which looks like this
class Test(database.Model):
created_date = database.Column(database.DateTime,
default=datetime.utcnow,
nullable=False)
I'm getting this via running command
all = Test.query.all()
Now, this gets me dates in format 2017-09-05 09:45:28
I want to get ISO representation of dates like 2017-09-05T09:45:28.263000
.
One option is to post-process the data I received, but what is the better approach? Is there any SQLAlchemy construct which will help me achieve this?