loefsys.reservations.models.user_log module

Module defining the model for logs filled in by a user.

class loefsys.reservations.models.user_log.UserLog(*args, **kwargs)

Bases: Model

Stores a filled in log by a user.

user

The user that has filled in the user.

Type:

User

filled_in

Flag which indicates whether the log was filled in.

Type:

bool

filled_in_at

The timestamp the log was filled in.

Type:

datetime

user

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.

filled_in

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

filled_in_at

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_next_by_filled_in_at(*, field=<django.db.models.fields.DateTimeField: filled_in_at>, is_next=True, **kwargs)
get_previous_by_filled_in_at(*, field=<django.db.models.fields.DateTimeField: filled_in_at>, is_next=False, **kwargs)
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>
user_id