id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 10749 ImageField is a string in the lookup api r.pelizzi@… nobody "I was trying to retrieve objects which didn't have the image attribute (an ImageField) set yet, so i tried with {{{MyModel.objects.filter(image=None)}}}. It didn't match any entry... {{{image__isnull}}} didn't work as well. Then i found out that I had to do {{{MyModel.objects.filter(image="""")}}}. So basically it seems that the ImageField is exposed as a string, as far as the lookup api is concerned. (I'm not familiar with django enough to look into django's source code to confirm this). It doesn't seem like a consistent behaviour to me, since the imagefields are high-level objects when accessed from instances." closed Database layer (models, ORM) 1.0 duplicate ImageField Unreviewed 0 0 0 0 0 0