I have a model (or actually 2 models, but the other is not that relevant)
class Foo(models.Model): ... bar = models.ForeignKey(Bar, ... )
bars = Bar.objects.filter(foo_set__attr=value)