If using an ImageField with value None, the template rendering ends with ValueError (The 'picture' attribute has no file associated with it.). If the value is empty string for the ImageField, then the rendering is ok.
I was not able to debug the issue in more detail, but accessing field.url from shell ends always with ValueError for both values (None or empty string), but with empty string, the error is somehow ignored in template rednering (it's a little bit harder to debug rendering of templates).
This should be fixed at least in clearable_input.html:
If using an ImageField with value None, the template rendering ends with ValueError (The 'picture' attribute has no file associated with it.). If the value is empty string for the ImageField, then the rendering is ok.
I was not able to debug the issue in more detail, but accessing field.url from shell ends always with ValueError for both values (None or empty string), but with empty string, the error is somehow ignored in template rednering (it's a little bit harder to debug rendering of templates).
This should be fixed at least in clearable_input.html:
to