django-modelcluster icon indicating copy to clipboard operation
django-modelcluster copied to clipboard

_default_manager should be used instead of objects

Open ChickenF622 opened this issue 5 years ago • 0 comments

Ran into an issue where if I used a custom manager ClusterableModels will sometimes throw an error when using the custom manager. It appears the the get_queryset function in fields.py specifically line 337 is defaulting to using objects instead of _default_manager. The issue can be worked around by assigning an objects manager, but _default_manager should be used instead.

ChickenF622 avatar Aug 23 '19 22:08 ChickenF622