Modules collectives.models.event#

Module for event related classes

class collectives.models.event.Event(**kwargs)#

Class of an event.

An event is an object a a determined start and end, related to actitivity types, leaders and user subscriptions. Description are stored as markdown format and html format.

activity_types#

Types of activity of this Event

Type

collectives.models.activity_type.ActivityType

description#

Raw event description as markdown text.

Type

string

end#

End of event.

Type

datetime.datetime

event_type#

Type of this event.

Type

collectives.models.event_type.EventType

event_type_id#

Primary key of the associated event type (see collectives.models.event_type.EventType)

Type

int

id#
leaders#

Users who lead this event.

Several users can lead the same event. Leaders do not subscribe to events and do not count in slots.

Type

collectives.models.user.User

main_leader#

Main leader of this event.

Type

collectives.models.user.User

main_leader_id#

Primary key of the registered user (see collectives.models.user.User)

Type

int

num_online_slots#

Maximum number of user that can self-register to this event.

Type

int

num_slots#

Maximum number of user that can register to this event.

Type

int

num_waiting_list#

Maximum number of user that can queue for this event.

Type

int

payment_items#

List of payment items associated to this event.

Type

list(collectives.models.payment.PaymentItem)

photo#

Path to event photo in UploadSet

Type

string

questions#

List of questions associated to this event

Type

list(collectives.models.question.Question)

registration_close_time#

Latest moment an user can self-register to this event.

This attribute can be null if event has no online slots.

Type

datetime.datetime

registration_open_time#

Earliest moment an user can self-register to this event.

This attribute can be null if event has no online slots.

Type

datetime.datetime

registrations#

Users link to this event.

Registered users are related by this relationship. Please note that refused users are still “registered”, even though they do not occupy a slot.

Type

collectives.models.user.User

rendered_description#

Rendered event description as HTML.

Type

string

reservations#

Reservations linked to this event.

Type

list(collectives.models.reservation.Reservation)

start#

Start of event.

Type

datetime.datetime

status#

Status of the event (Confirmed, Cancelled…)

Type

collectives.models.event.EventStatus

tag_refs#

List of tags associated to this event.

Type

list(collectives.models.event_tag.EventTag)

title#

Title of the event.

Title will be displayed in event list and in top of event detail page.

Type

string

user_group_id#

Primary key of the user group to which to restrict registrations

Type

int

visibility#

Visibility of the event (Public, Private…)

Type

collectives.models.event.EventVisibility