Say I have a model that is
class Bottles(models.Model) BottleCode = models.IntegerField() class Labels(models.Model) LabelCode = models.IntegerField() How do I get a queryset of Bottles where the BottleCode and LabelCode are equal? (i.e. Bottles and Labels with no common Code are excluded)