Browse files

Allow PassThroughManager subclasses to accept additional params.

  • Loading branch information...
1 parent 8b231f4 commit 3f7378ef60be3919635fd68a0420fde411d4712c @SeanHayes SeanHayes committed Mar 7, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 model_utils/managers.py
View
4 model_utils/managers.py
@@ -282,8 +282,8 @@ class Post(models.Model):
def create_pass_through_manager_for_queryset_class(base, queryset_cls):
class _PassThroughManager(base):
- def __init__(self):
- return super(_PassThroughManager, self).__init__()
+ def __init__(self, *args, **kwargs):
+ return super(_PassThroughManager, self).__init__(*args, **kwargs)
def get_queryset(self):
qs = super(_PassThroughManager, self).get_queryset()

0 comments on commit 3f7378e

Please sign in to comment.