loefsys.reservations.models.log module
Module defining the model for logs.
- class loefsys.reservations.models.log.Log(*args, **kwargs)
Bases:
Model
Describes a log associated for a boat type.
- boat_type
The type of boat.
- Type:
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- boat_type
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 aForwardManyToOneDescriptor
instance.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- boat_type_id
- 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>
- question_set
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- class loefsys.reservations.models.log.Question(*args, **kwargs)
Bases:
Model
Describes questions associated with a log.
- log
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 aForwardManyToOneDescriptor
instance.
- BOOLEAN_FIELD = 'boolean'
- INTEGER_FIELD = 'integer'
- TEXT_FIELD = 'text'
- DATETIME_FIELD = 'datetime'
- FIELD_TYPES = (('boolean', 'Boolean'), ('integer', 'Geheel getal'), ('text', 'Tekst'), ('datetime', 'Datetime'))
- type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- subject
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.
- required
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- get_type_display(*, field=<django.db.models.fields.CharField: type>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- log_id
- objects = <django.db.models.manager.Manager object>