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

Custom QuerySet.as_manager() classes fail

Open dwasyl opened this issue 4 years ago • 1 comments

HI there,

Just trying to take advantage of this app, but a number of my models already have custom QuerySets, which get added as managers by objects = ObjectQuerySet.as_manager(), however, when I try to do that in scopes terms, ScopedManager(org='organization', _manager_class=ObjectQuerySet.as_manager()) it fails, on the class Maanger(_manager_class) reporting that it takes 1 argument, but received 4.

Any idea if it can get working with these custom QuerySet managers? It would be great not to have to rewrite all of that code.

Thanks!

dwasyl avatar May 07 '21 21:05 dwasyl

Sorry, unfortunately I did not research if that is possible. I'm somehow suspecting it won't be easily.

raphaelm avatar Aug 25 '21 14:08 raphaelm