loefsys.users.models.study_registration module

Module containing the definition for a study registration.

class loefsys.users.models.study_registration.StudyRegistration(*args, **kwargs)

Bases: Model Extensions

Model for members who are registered for a study.

created

The timestamp of creation of this model.

Type:

datetime

modified

The timestamp of last modification of this model.

Type:

datetime

member

The member whom the study details belong to.

Type:

LoefbijterMember

institution

The name of the institution where the person is registered.

Type:

str

programme

The programme that the person follows at the institution.

Type:

str

student_number

The student number of the person.

Type:

str

rsc_number

The RSC number of the person or empty if they don’t have one.

Type:

str

member

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.

institution

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

programme

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

student_number

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

rsc_number

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

created

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

get_next_by_created(*, field=<django_extensions.db.fields.CreationDateTimeField: created>, is_next=True, **kwargs)
get_next_by_modified(*, field=<django_extensions.db.fields.ModificationDateTimeField: modified>, is_next=True, **kwargs)
get_previous_by_created(*, field=<django_extensions.db.fields.CreationDateTimeField: created>, is_next=False, **kwargs)
get_previous_by_modified(*, field=<django_extensions.db.fields.ModificationDateTimeField: modified>, 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.

member_id
modified

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>