beat.web.experiments.models.result module

class beat.web.experiments.models.result.ResultManager[source]

Bases: django.db.models.manager.Manager

get_by_natural_key(name, hash)[source]
class beat.web.experiments.models.result.Result(id, cache, name, type, primary, data_value)[source]

Bases: django.db.models.base.Model

SIMPLE_TYPE_NAMES = ('int32', 'float32', 'bool', 'string')
cache

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.

name

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

type

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

primary

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

data_value

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

objects = <beat.web.experiments.models.result.ResultManager object>
natural_key()[source]
value()[source]
is_chart()[source]
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

cache_id
id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

rank_set

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.