loefsys.groups.models.year_club module

Module containing the model definition for a year club.

class loefsys.groups.models.year_club.YearClub(*args, **kwargs)

Bases: LoefbijterGroup

A year club consists of a group people belonging to the same year.

A year club is a group of members that joined the association in the same year. Year clubs usually host certain events for the association, and are tied to the year they joined the association.

year

The year of the year club.

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