mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
Allow PassThroughManager subclasses to accept additional params.
This commit is contained in:
parent
8b231f4b0b
commit
3f7378ef60
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue