I have a model on which the default manager filters out some instances, which causes the media matching the filtered rows to be treated as unused. This is problematic.
Using _base_manager rather than objects to find model instances should fix this problem, and it fixes the potential bug around assuming that every model has a default manager called objects.
I have a model on which the default manager filters out some instances, which causes the media matching the filtered rows to be treated as unused. This is problematic.
Using
_base_manager
rather thanobjects
to find model instances should fix this problem, and it fixes the potential bug around assuming that every model has a default manager calledobjects
.