loefsys.reservations.models.material module

Module defining the model for generic materials.

class loefsys.reservations.models.material.Material(*args, **kwargs)

Bases: ReservableItem

Describes a material item that can be reserved.

A gear-piece is any wearable item used for sailing. It is of a type and has a size measure.

size

The size of the item (if applicable?).

Type:

str

size

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: DoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

reservableitem_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

reservableitem_ptr_id