django-scopes
django-scopes copied to clipboard
Custom QuerySet.as_manager() classes fail
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!
Sorry, unfortunately I did not research if that is possible. I'm somehow suspecting it won't be easily.