Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #116 from SeanHayes/master

Allow PassThroughManager subclasses to accept additional params.
  • Loading branch information...
commit f1e3a18c5f77b6d374d1d821c24ae5375af5219e 2 parents 8b231f4 + 3f7378e
@carljm authored
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()
Please sign in to comment.
Something went wrong with that request. Please try again.