I have a listTextField in my modal called technology. I want to filter objects based on an array, if every array value is present in the technology field.
tech = ['a','b',....] #dynamic list
mentors_list = Mentor.objects.filter(
**{"technology__contains" : value for value in tech}) #this doesn't work
Mentor class has (among other fields) :
class Mentor(Meta):
technology = ListTextField(
base_field=models.CharField(max_length=20),
size=10, max_length=(10 * 11))
Basically i want all objects in mentor_list whose technology field must contain all the values from tech array ( but may contain some extra values ).