akolpakov / django-unused-media

Remove unused media files from Django project
MIT License
124 stars 24 forks source link

Media is treated as unused if filtered from the default manager #35

Closed tari closed 4 years ago

tari commented 4 years ago

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.

akolpakov commented 4 years ago

Will be released in new version 0.2