[Django]-Django: search (filter) by FileField.name

31👍

Nevermind – it’s just

models.MyModel.objects.filter(image='myfile.jpg')

a separate issue was causing me to think this wasn’t working, but in fact it is.

👤Parand

Leave a comment