query.collectionqueries.models

collectionqueries model graph

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

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.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.toppings and topping.pizzas are ManyToManyDescriptor instances.

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.parent is a ForwardManyToOneDescriptor instance.

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.children is a ReverseManyToOneDescriptor instance.

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.

class meta[source]

Bases: object

verbose_name_plural = 'field queries'
objects = <django.db.models.manager.Manager object>
class query.collectionqueries.models.Fieldset(*args, **kwargs)[source]

Bases: django.db.models.base.Model

Defines a fieldset.

field_name
field_type
operator
value
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.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.parent is a ForwardManyToOneDescriptor instance.

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.