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
The resulting MyModel.objects.all() won't return upcasted models.
The reason I use as_manager is I can just keep one QuerySet and avoid duplicating stuff unnecessarily. I think there was an intention to have it implemented this was from a long time ago, but it seems it didn't happen.
Or, I'm wrong, and making a mistake... 😄
The text was updated successfully, but these errors were encountered:
If you don’t explicitly call select_subclasses() or get_subclass(), an InheritanceManager behaves identically to a normal Manager; so it’s safe to use as your default manager for the model.
In the changelog I see:
https://github.com/jazzband/django-model-utils/blob/master/CHANGES.rst#24-20151203
However, if I create a:
With an implementation of:
The resulting
MyModel.objects.all()
won't return upcasted models.The reason I use
as_manager
is I can just keep oneQuerySet
and avoid duplicating stuff unnecessarily. I think there was an intention to have it implemented this was from a long time ago, but it seems it didn't happen.Or, I'm wrong, and making a mistake... 😄
The text was updated successfully, but these errors were encountered: