Open nikolaysm opened 6 years ago
Dear,
I get error if i do post and the form has been filled out incorrectly. On line 163 in djng/forms/widgets.py.
'unicode' object has no attribute 'url' Value is "u'Drop image here or click to upload" but must be None because imagefield was empty
Django version?
django== 1.11
It can be fixed by checking for unicode?
if not isinstance(value, unicode) and value: ...
That is not a good solution, because it seems that imagefield is empty.
Dear,
I get error if i do post and the form has been filled out incorrectly. On line 163 in djng/forms/widgets.py.
'unicode' object has no attribute 'url' Value is "u'Drop image here or click to upload" but must be None because imagefield was empty