events.models package¶
The models defined by the events package
Submodules¶
events.models.event module¶
-
class
events.models.event.
Event
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Describes an event
-
CATEGORY_ALUMNI
= 'alumni'¶
-
CATEGORY_ASSOCIATION
= 'association'¶
-
CATEGORY_CAREER
= 'career'¶
-
CATEGORY_EDUCATION
= 'education'¶
-
CATEGORY_LEISURE
= 'leisure'¶
-
CATEGORY_OTHER
= 'other'¶
-
DEFAULT_NO_REGISTRATION_MESSAGE
= 'No registration required / Geen aanmelding vereist'¶
-
exception
DoesNotExist
¶
-
EVENT_CATEGORIES
= (('alumni', 'Alumni'), ('education', 'Education'), ('career', 'Career'), ('leisure', 'Leisure'), ('association', 'Association Affairs'), ('other', 'Other'))¶
-
exception
MultipleObjectsReturned
¶
-
property
after_cancel_deadline
¶
-
cancel_deadline
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
cancellation_allowed
¶
-
property
cancellations
¶ Return a queryset with the cancelled events
-
category
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
clean
()[source]¶ Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
-
property
description
¶ Accessor that fetches the localized variant of description
-
description_en
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
description_nl
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
documents
¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
andTopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
end
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
eventregistration_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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
fine
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
get_category_display
(*, field=<django.db.models.fields.CharField: category>)¶
-
get_next_by_end
(*, field=<django.db.models.fields.DateTimeField: end>, is_next=True, **kwargs)¶
-
get_next_by_start
(*, field=<django.db.models.fields.DateTimeField: start>, is_next=True, **kwargs)¶
-
get_previous_by_end
(*, field=<django.db.models.fields.DateTimeField: end>, is_next=False, **kwargs)¶
-
get_previous_by_start
(*, field=<django.db.models.fields.DateTimeField: start>, is_next=False, **kwargs)¶
-
get_registrationinformationfield_order
()¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
location
¶ Accessor that fetches the localized variant of location
-
location_en
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
location_nl
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
map_location
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
max_participants
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
no_registration_message
¶ Accessor that fetches the localized variant of no_registration_message
-
no_registration_message_en
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
no_registration_message_nl
¶ 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>¶
-
organiser
¶ 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 aForwardManyToOneDescriptor
instance.
-
organiser_id
¶
-
property
participants
¶ Return the active participants
-
pizzaevent
¶ Accessor to the related object on the reverse side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Place.restaurant
is aReverseOneToOneDescriptor
instance.
-
price
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
published
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
queue
¶ Return the waiting queue
-
property
registration_allowed
¶
-
registration_end
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
registration_reminder
¶ 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 aForwardManyToOneDescriptor
instance.
-
registration_reminder_id
¶
-
property
registration_required
¶
-
registration_start
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
registration_started
¶
-
registrationinformationfield_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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
property
registrations
¶ Queryset with all non-cancelled registrations
-
save
(*args, **kwargs)[source]¶ Save the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
-
send_cancel_email
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
set_registrationinformationfield_order
(id_list, using=None)¶
-
slide
¶ 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 aForwardManyToOneDescriptor
instance.
-
slide_id
¶
-
start
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
start_reminder
¶ 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 aForwardManyToOneDescriptor
instance.
-
start_reminder_id
¶
-
property
title
¶ Accessor that fetches the localized variant of title
-
title_en
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
title_nl
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
events.models.event_registration module¶
-
class
events.models.event_registration.
EventRegistration
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
,payments.models.Payable
Describes a registration for an Event
-
exception
DoesNotExist
¶
-
exception
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
clean
()[source]¶ Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.
-
date
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
date_cancelled
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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 aForwardManyToOneDescriptor
instance.
-
event_id
¶
-
get_next_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, is_next=True, **kwargs)¶
-
get_previous_by_date
(*, field=<django.db.models.fields.DateTimeField: date>, 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.
-
property
information_fields
¶
-
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
property
is_invited
¶
-
property
is_registered
¶
-
member
¶ 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 aForwardManyToOneDescriptor
instance.
-
member_id
¶
-
name
¶ 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>¶
-
payment
¶ 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 aForwardOneToOneDescriptor
instance.
-
property
payment_amount
¶
-
payment_id
¶
-
property
payment_notes
¶
-
property
payment_payer
¶
-
property
payment_topic
¶
-
present
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
property
queue_position
¶
-
save
(*args, **kwargs)[source]¶ Save the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
-
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
exception
events.models.feed_token module¶
-
class
events.models.feed_token.
FeedToken
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Used to personalize the ical Feed
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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 aForwardOneToOneDescriptor
instance.
-
member_id
¶
-
objects
= <django.db.models.manager.Manager object>¶
-
save
(*args, **kwargs)[source]¶ Save the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
-
token
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
events.models.registration_information_field module¶
-
class
events.models.registration_information_field.
AbstractRegistrationInformation
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Abstract to contain common things for registration information
-
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 aForwardManyToOneDescriptor
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)¶
-
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 aForwardManyToOneDescriptor
instance.
-
registration_id
¶
-
-
class
events.models.registration_information_field.
BooleanRegistrationInformation
(*args, **kwargs)[source]¶ Bases:
events.models.registration_information_field.AbstractRegistrationInformation
Checkbox information filled in by members when registering
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
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 aForwardManyToOneDescriptor
instance.
-
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 aForwardManyToOneDescriptor
instance.
-
value
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
events.models.registration_information_field.
IntegerRegistrationInformation
(*args, **kwargs)[source]¶ Bases:
events.models.registration_information_field.AbstractRegistrationInformation
Checkbox information filled in by members when registering
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
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 aForwardManyToOneDescriptor
instance.
-
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 aForwardManyToOneDescriptor
instance.
-
value
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception
-
class
events.models.registration_information_field.
RegistrationInformationField
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Describes a field description to ask for when registering
-
BOOLEAN_FIELD
= 'boolean'¶
-
exception
DoesNotExist
¶
-
FIELD_TYPES
= (('boolean', 'Checkbox'), ('text', 'Text'), ('integer', 'Integer'))¶
-
INTEGER_FIELD
= 'integer'¶
-
exception
MultipleObjectsReturned
¶
-
TEXT_FIELD
= 'text'¶
-
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
property
description
¶ Accessor that fetches the localized variant of description
-
description_en
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
description_nl
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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 aForwardManyToOneDescriptor
instance.
-
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
property
name
¶ Accessor that fetches the localized variant of name
-
name_en
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name_nl
¶ 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>¶
-
required
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
type
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
-
class
events.models.registration_information_field.
TextRegistrationInformation
(*args, **kwargs)[source]¶ Bases:
events.models.registration_information_field.AbstractRegistrationInformation
Checkbox information filled in by members when registering
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
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 aForwardManyToOneDescriptor
instance.
-
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 aForwardManyToOneDescriptor
instance.
-
value
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
exception