1π
β
The problem is with the .get_queryset(β¦)
method of your ApprovedPubhishedArtcilesManager
. You can access the model with:
class ApprovedPublishedArticlesManager(models.Manager):
def get_queryset(self):
return self.model.approved_objects.filter(is_published=True)
although it might be better to inherit from AuthoriseableApprovedManager
and make use of the base implementation of the .get_queryset(β¦)
method. This is also more robust, since you do not have to take into account for what name that manager will be registered.
Source:stackexchange.com