User model

class models.user.User(email, name)[source]

A user of the EMF website

User objects are usually created when a user purchases a ticket or submits a proposal to the Call for Participation.

email_state: Mapped[EmailStatus][source]

Whether the user’s email address has been verified or bounced

checkin_note: Mapped[str | None][source]

A note shown to the entrance volunteer when this person is checked in

promo_opt_in: Mapped[bool][source]

Whether the user has opted in to receive promotional emails after this event

permissions: Mapped[list[Permission]][source]

Website permissions assigned to this user

payments: Mapped[list[Payment]][source]

Payments created by this user

purchases: Mapped[list[Purchase]][source]

All purchases which this user has made (which may have been transferred to another user)

owned_purchases: Mapped[list[Purchase]][source]

Purchases owned by this user

owned_tickets: Mapped[list[Ticket]][source]

Tickets owned by this user

owned_admission_tickets: Mapped[list[AdmissionTicket]][source]

Admission tickets owned by this user

name: Mapped[str][source]

The user’s name

get_owned_tickets(paid=None, type=None)[source]

Get tickets owned by a user, filtered by type and payment state.

Return type:

Iterable[Ticket]

property has_admission_ticket: bool[source]

Whether the user has a ticket to the event.