I have a model:
class Tag(models.Model):
name = models.CharField(max_length=50,primary_key=True)
#Some other fields....
Then i get from another query, or from some other source, a list of names:
['bob','dylan','jane','doe']
How can i select from the database the tags with the names from the list ?
Tag.objects.filter(name__in=['bob','dylan','jane','doe'])