mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-17 04:10:24 +00:00
removed trailing whitespace
This commit is contained in:
parent
aaf1fc8636
commit
9e024a14af
1 changed files with 4 additions and 4 deletions
|
|
@ -167,10 +167,10 @@ class InheritanceQuerySetMixin(object):
|
|||
|
||||
class InheritanceManagerMixin(object):
|
||||
use_for_related_fields = True
|
||||
|
||||
|
||||
def get_queryset(self):
|
||||
return InheritanceQuerySet(self.model)
|
||||
|
||||
|
||||
get_query_set = get_queryset
|
||||
|
||||
def select_subclasses(self, *subclasses):
|
||||
|
|
@ -213,9 +213,11 @@ class QueryManagerMixin(object):
|
|||
|
||||
get_query_set = get_queryset
|
||||
|
||||
|
||||
class QueryManager(QueryManagerMixin, models.Manager):
|
||||
pass
|
||||
|
||||
|
||||
class PassThroughManagerMixin(object):
|
||||
"""
|
||||
A mixin that allow you to add functionality to a Manager
|
||||
|
|
@ -251,7 +253,6 @@ class PassThroughManagerMixin(object):
|
|||
return create_pass_through_manager_for_queryset_class(cls, queryset_cls)
|
||||
|
||||
|
||||
|
||||
class PassThroughManager(PassThroughManagerMixin, models.Manager):
|
||||
"""
|
||||
Inherit from this Manager to enable you to call any methods from your
|
||||
|
|
@ -274,7 +275,6 @@ class PassThroughManager(PassThroughManagerMixin, models.Manager):
|
|||
pass
|
||||
|
||||
|
||||
|
||||
def create_pass_through_manager_for_queryset_class(base, queryset_cls):
|
||||
class _PassThroughManager(base):
|
||||
def __init__(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue