Package expedient :: Package common :: Package extendable :: Module models :: Class ExtendableManager
[hide private]
[frames] | no frames]

Class ExtendableManager

source code


A manager for Extendable objects.

Instance Methods [hide private]
 
filter_for_class(self, klass)
Return a filtered QuerySet that only has instances whose leaf class is klass.
source code
 
filter_for_classes(self, klasses)
Return a filtered QuerySet that only has instances whose leaf class are in the list klasses.
source code

Inherited from django.db.models.manager.Manager: __init__, aggregate, all, annotate, complex_filter, contribute_to_class, count, create, dates, db_manager, defer, distinct, exclude, exists, extra, filter, get, get_empty_query_set, get_or_create, get_query_set, in_bulk, iterator, latest, none, only, order_by, raw, reverse, select_related, update, using, values, values_list

Inherited from django.db.models.manager.Manager (private): _copy_to_model, _insert, _set_creation_counter, _update

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from django.db.models.manager.Manager: creation_counter

Properties [hide private]

Inherited from django.db.models.manager.Manager: db

Inherited from object: __class__

Method Details [hide private]

filter_for_class(self, klass)

source code 

Return a filtered QuerySet that only has instances whose leaf class is klass.

Parameters:
  • klass (a class) - The leaf model class of instances we are looking for.

filter_for_classes(self, klasses)

source code 

Return a filtered QuerySet that only has instances whose leaf class are in the list klasses.

Parameters:
  • klasses (list of classes) - List of leaf model classes of instances we are looking for.