loefsys.groups.models.board module

Module containing the model definitions for a board.

class loefsys.groups.models.board.Board(*args, **kwargs)

Bases: LoefbijterGroup

A group model for the board of Loefbijter.

The board is a group of people that run the association. The board members change yearly so every board has a year attached to it.

year

The year of the board, starting in the founding year.

Type:

int

year

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

loefbijtergroup_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.

loefbijtergroup_ptr_id