mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Updated PassThroughManager.for_queryset_class for less ambiguous behavior in case of incorrect usage.
This commit is contained in:
parent
6afa9d566d
commit
8c6af71713
1 changed files with 3 additions and 0 deletions
|
|
@ -129,6 +129,9 @@ class PassThroughManager(models.Manager):
|
|||
@classmethod
|
||||
def for_queryset_class(cls, queryset_cls):
|
||||
class _PassThroughManager(cls):
|
||||
def __init__(self):
|
||||
return super(_PassThroughManager, self).__init__()
|
||||
|
||||
def get_query_set(self):
|
||||
kwargs = {}
|
||||
if hasattr(self, "_db"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue