loefsys.reservations.models.room module

Module defining the room reservable model.

class loefsys.reservations.models.room.Room(*args, **kwargs)

Bases: ReservableItem

Model defining a room that can be reserved.

A room is a place the Loefbijter owns which can be used by any part within Loefbijter (this does not include the VvS). It has a limited capacity and has required permission.

capacity

The capacity of the room.

Type:

int

capacity

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