beat.web.reports.models module¶
-
class
beat.web.reports.models.ReportManager[source]¶ Bases:
django.db.models.manager.Manager
-
class
beat.web.reports.models.Report(id, status, name, number, author, creation_date, last_edited_date, expiration_date, publication_date, short_description, description, content, analyzer)[source]¶ Bases:
django.db.models.base.Model-
EDITABLE= 'E'¶
-
LOCKED= 'L'¶
-
PUBLISHED= 'P'¶
-
REPORT_STATUS= (('E', 'Editable'), ('L', 'Locked'), ('P', 'Published'))¶
-
status¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
number¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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.
-
experiments¶ 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.
-
creation_date¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
last_edited_date¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
expiration_date¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
publication_date¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
short_description¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
description¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
content¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
analyzer¶ 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.
-
referenced_plotters¶ 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.
-
referenced_plotterparameters¶ 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.
-
objects= <beat.web.reports.models.ReportManager object>¶
-
save(*args, **kwargs)[source]¶ Save the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
-
exception
DoesNotExist¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
analyzer_id¶
-
get_next_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=True, **kwargs)¶
-
get_previous_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=False, **kwargs)¶
-
get_status_display(*, field=<django.db.models.fields.CharField: status>)¶
-
id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-