Consider these pseudo classes:
class Foo(models.Model):
pass
class Bar(models.Model):
foo = models.ForeignKey(Foo)
I would like to filter via Foo’s manager effectively to get a QuerySet that only holds Foo objects with atleast 2 Bar objects pointing towards it.
Use aggregation with
Count: