You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to use InheritanceQuerySet.instance_of to filter a queryset to only some sub-classes, and use queryset.count() to get the count, instead I get an OperationalError.
Problem
When trying to use
InheritanceQuerySet.instance_of
to filter a queryset to only some sub-classes, and usequeryset.count()
to get the count, instead I get anOperationalError
.Environment
Code examples
As you can see, the query is missing the
LEFT OUTER JOIN
directive when trying to usecount
.The text was updated successfully, but these errors were encountered: