Open kraghuprasad opened 2 years ago
Show me the code
Show me the code
Sorry for the mess-up. The full text of the issue I had written got lost when github directed me towards the code submission guideline which opened in the same window. While posting it, I didn't notice that it was lost. Now I have rewritten the same by modifying this bug report.
My test result: 0.19.1 can reproduce the bug And 0.19.3 fixed
Thanks. I'll check again.
Describe the bug I am using version 0.19.1 of tortoise-orm. It is not fetching the datetime fields of models correctly from from postgres database. This problem is not present in version 0.19.0.
To Reproduce Following is the collated code from multiple files in my project. I have tried to put relevant sections of models and mixins here. I am making a FastAPI app.
Expected behavior After a POST request is made in /authusers, the object returned (AuthuserOut) has its created_at and last_modified_at attributes set to null if I use version 0.19.1 of tortoise-orm. Correct date-time is shown if I use version 0.19.0.
Additional context I am using Tortoise ORM for building a FastAPI application. There are multiple files in the project. I have tried to collect only relevant sections of the code to showcase the issue. May be some parts or modules missing from the supplied code.