Updated PassThroughManager.for_queryset_class for less ambiguous behavior in case of incorrect usage.

This commit is contained in:
Carl Meyer 2011-12-05 17:08:51 -07:00
parent 6afa9d566d
commit 8c6af71713

View file

@ -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"):