Let's say I have two models:
class Human(models.Model):
name= models.CharField(#...
class Jacket(models.Model):
owner = models.ForeignKey(Human, #...
So, thanks to this question I was able to figure out that I could get all Jackets of a Human by doing: human_object.jacket_set
Now I want to get a Queryset with all Humans that own a jacket. Inspired by this question, I tried something like this,
Human.objects.exclude(jacket__set=None)
but I wouldn't be here if that had worked.