[Answered ]-How to return field name containing a given value in a django model?

1👍

This way you can pass the list of words and can return all the QuerySet that contains all the words in the word_list

for word in word_list:
    return MyModel.objects.filter(word__icontains = word)

Leave a comment