query.collectionqueries.models¶
Graph of models in the query.collectionqueries app and related apps.
-
class
query.collectionqueries.models.CollectionQuery(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
collections¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
pizza.toppingsandtopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
created_by¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parentis aForwardManyToOneDescriptorinstance.
-
created_by_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
created_date¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
fieldsets¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
get_joiner_display(**morekwargs)¶
-
get_next_by_created_date(**morekwargs)¶
-
get_previous_by_created_date(**morekwargs)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
joiner¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
exception
-
class
query.collectionqueries.models.Fieldset(*args, **kwargs)[source]¶ Bases:
django.db.models.base.ModelDefines a fieldset.
-
field_name¶
-
field_type¶
-
operator¶
-
value¶
-
exception
DoesNotExist¶
-
exception
MultipleObjectsReturned¶
-
field_name A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
field_type A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_field_type_display(**morekwargs)¶
-
get_operator_display(**morekwargs)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects= <django.db.models.manager.Manager object>¶
-
operator A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
query¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parentis aForwardManyToOneDescriptorinstance.
-
query_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
value A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-