Closed bbedward closed 4 years ago
Oh, I think I fixed that issue in the 0.16.9 release. It was specific to a prefetch on a one-to-one field.
Could you please test 0.16.9 and see if it fixes your issue?
Tested v0.16.9 and it appears to be fixed.
Thanks again for the fast response!
Describe the bug The following query produces an exception:
Account Model:
The exception is as follows:
To Reproduce Run a .prefetch_related query with .first() on a postgres database
Expected behavior Query returns a single Account object or None, if account doesn't exist.
Additional context This recently popped up after upgrading to tortoise-orm 0.16.8 from 0.15.5, it's a regression with the newer versions.