I have an ImageField in my model and when I'm saving it I want to check that if it's None or not.
In django shell I'm calling my object's ImageField and it gives :
>>> p.avatar
<ImageFieldFile: None>
>>> p.avatar is None
False
I found that the ImageField's name is u'', so is there any better way to do it ?