Suppose I have a list of objects of this class:
class Item(models.Model): name = models.CharField(max_length=100) age = models.CharField(max_length=5) company = models.CharField(max_length=100) ls = [<Item: Igor>, <Item: Alex>, <Item: Sandra>] And also there is a dictionary with properties:
query = {'name': 'Igor', 'age': '25'} Tell me how to filter the list for this dictionary?