Permalink
Browse files

Merge pull request #116 from SeanHayes/master

Allow PassThroughManager subclasses to accept additional params.
  • Loading branch information...
2 parents 8b231f4 + 3f7378e commit f1e3a18c5f77b6d374d1d821c24ae5375af5219e @carljm carljm committed Mar 8, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 model_utils/managers.py
View
@@ -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 f1e3a18

Please sign in to comment.