I know this has been reported before in #461 #449 #259 however the out of the box behavior is not good. I am getting the same error just by adding a thumbnail to a DRF serializer. DRF is able to gracefully render null for non existing images and the url of the image when there is an image. Imagekit should probably be smart enough to do the same, otherwise we are all trapped in wrapping the code with if blocks for the super common of nullable image fields, which should be covered out of the box.
I know this has been reported before in #461 #449 #259 however the out of the box behavior is not good. I am getting the same error just by adding a thumbnail to a DRF serializer. DRF is able to gracefully render
null
for non existing images and the url of the image when there is an image. Imagekit should probably be smart enough to do the same, otherwise we are all trapped in wrapping the code withif
blocks for the super common of nullable image fields, which should be covered out of the box.Anyways, thanks for all your hard work on this!!