loefsys.events.models.registration_form_field module

Defines the RegistrationForm model.

This model is used to handle registrations for events in the application.

class loefsys.events.models.registration_form_field.RegistrationFormField(*args, **kwargs)

Bases: Model

Represents a registration form for events.

This model stores the subject, response, and associated event for a registration.

BOOLEAN_FIELD = 'boolean'
INTEGER_FIELD = 'integer'
TEXT_FIELD = 'text'
DATETIME_FIELD = 'datetime'
FIELD_TYPES = [('boolean', 'Boolean'), ('integer', 'Geheel getal'), ('text', 'Tekst'), ('datetime', 'Datetime')]
event

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

type

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

subject

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

description

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

required

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

property default

Get default value for registration form field based on its type.

get_value_for(registration)

Get value for registration form field based on registration.

set_value_for(registration, value)

Set value for registration form field based on registration and value.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

booleanregistrationinformation_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

datetimeregistrationinformation_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

event_id
get_next_in_order(*, is_next=True)
get_previous_in_order(*, is_next=False)
get_type_display(*, field=<django.db.models.fields.CharField: type>)
id

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

integerregistrationinformation_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

objects = <django.db.models.manager.Manager object>
textregistrationinformation_set

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class loefsys.events.models.registration_form_field.AbstractRegistrationInformation(*args, **kwargs)

Bases: Model

Abstract to contain common things for registration information.

registration

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

field

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

changed

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

class Meta

Bases: object

abstract = False
field_id
get_next_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, is_next=True, **kwargs)
get_previous_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, is_next=False, **kwargs)
registration_id
class loefsys.events.models.registration_form_field.BooleanRegistrationInformation(*args, **kwargs)

Bases: AbstractRegistrationInformation

Checkbox information filled in by members when registering.

value

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

changed

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

field

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

field_id
get_next_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, is_next=True, **kwargs)
get_previous_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, 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.

objects = <django.db.models.manager.Manager object>
registration

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

registration_id
class loefsys.events.models.registration_form_field.TextRegistrationInformation(*args, **kwargs)

Bases: AbstractRegistrationInformation

Checkbox information filled in by members when registering.

value

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

changed

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

field

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

field_id
get_next_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, is_next=True, **kwargs)
get_previous_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, 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.

objects = <django.db.models.manager.Manager object>
registration

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

registration_id
class loefsys.events.models.registration_form_field.IntegerRegistrationInformation(*args, **kwargs)

Bases: AbstractRegistrationInformation

Checkbox information filled in by members when registering.

value

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

changed

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

field

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

field_id
get_next_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, is_next=True, **kwargs)
get_previous_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, 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.

objects = <django.db.models.manager.Manager object>
registration

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

registration_id
class loefsys.events.models.registration_form_field.DatetimeRegistrationInformation(*args, **kwargs)

Bases: AbstractRegistrationInformation

Checkbox information filled in by members when registering.

value

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

changed

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

field

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

field_id
get_next_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, is_next=True, **kwargs)
get_next_by_value(*, field=<django.db.models.fields.DateTimeField: value>, is_next=True, **kwargs)
get_previous_by_changed(*, field=<django.db.models.fields.DateTimeField: changed>, is_next=False, **kwargs)
get_previous_by_value(*, field=<django.db.models.fields.DateTimeField: value>, 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.

objects = <django.db.models.manager.Manager object>
registration

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

Child.parent is a ForwardManyToOneDescriptor instance.

registration_id