django-versatileimagefield
django-versatileimagefield copied to clipboard
Image warmer doesn't handle empty image fields
The image warmer assumes every image field has a path, so with the FileSystem storage it naively tries using the empty string and we get a IsADirectoryError on the MEDIA_ROOT.
i got this on each setup call in tests :c
because we had signal connected to instance save method to warm images.
so I've added if instance.image condition before calling .warm() method to handle it
i got this on each setup call in tests :c because we had signal connected to instance save method to warm images. so I've added
if instance.imagecondition before calling.warm()method to handle it
thanks, pasha!