Merge pull request #116 from SeanHayes/master

Allow PassThroughManager subclasses to accept additional params.
This commit is contained in:
Carl Meyer 2014-03-07 18:07:52 -06:00
commit f1e3a18c5f

View file

@ -282,8 +282,8 @@ class PassThroughManager(PassThroughManagerMixin, models.Manager):
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()