I have some models using django-polymorphic-model
eg.
class Article(PolymorphicModel):
...
class Blog(Article):
tags = ...
class Story(Article):
publish = ...
Normally if I get all articles, I just do Article.objects.all()
, however what if I want to get all articles that tags are empty? If I do Articles.objects.filter(tags__isnull=True)
it will break because other models don't have this field, I would like to include Story entries too, do I really have to split into 2 different queries and combine again?