fsi.models.course_subscription

Attributes

table_name

subscription_table

Classes

CourseSubscription

Linking table between CourseEvent and CourseAttendee.

Module Contents

fsi.models.course_subscription.table_name = 'fsi_reservations'[source]
fsi.models.course_subscription.subscription_table[source]
class fsi.models.course_subscription.CourseSubscription[source]

Bases: onegov.core.orm.Base

Linking table between CourseEvent and CourseAttendee. This table is defined in a way such that it can be used for a secondary join in CourseEvent.attendees.

attendee_id is Null if its a placeholder subscription.

__table__[source]
__tablename__ = 'fsi_reservations'[source]
__mapper_args__[source]
id: sqlalchemy.Column[uuid.UUID][source]
course_event: relationship[CourseEvent][source]
attendee: relationship[CourseAttendee | None][source]
property is_placeholder: bool[source]
can_be_confirmed(request: onegov.fsi.request.FsiRequest) bool[source]
__str__() str[source]