I have a model with an ImageField and there are around 100 instances of the model in the database. Some of these instances have the same bitmap image (but saved in different path locations, path = obj.first_name + obj.date_of_creation).
I want to run a search for all obj.images and if the content (in bitmap sense), is same as a new Image (that I would specify), I want to replace the obj. image with the new image. How do I check this equality at file level/bitmap level in Django?
Thanks