load_all()
/select_related()
pydantic validation errors for ormar.JSON() field type
#1391
Labels
bug
Something isn't working
Describe the bug
When running
load_all()
orselect_related()
on model with foreign model with ormar.JSON() field, we see a pydantic validation error.To Reproduce
Error traceback
Expected behavior
Unless I'm using these functions the wrong way, I expect either of these functions to not hit any pydantic errors.
Versions (please complete the following information):
Additional context
prefetch_related
instead ofselected_related
author = await author.load(); books = await author.books.all()
Thanks in advance!
The text was updated successfully, but these errors were encountered: