My model is like this
class Foo(models.Model):
user = models.ForeignKey(User)
class Meta:
abstract = True
class Bar(Foo):
bar_thing = models.CharField(..)
class Baz(Foo):
baz_thing = models.CharField(..)
I want to get all bar, baz (And other FooSubclasses) which have user__username = 'hello'
i do Foo.objects.filter(user__username = 'hello')
. This gives me an error 'Options' object has no attribute '_join_cache'
How can I do this?