Unified Component Models
These models represent the unified architecture of eventyay, integrating tickets, talk, and video components.
Base Models & Mixins
- class eventyay.base.models.PretalxModel(*args, **kwargs)
Bases:
LogMixin,TimestampedModel,FileCleanupMixin,RulesModelMixin,ModelBase model for most Eventyay models. Suitable for plugins. Provides scoped object management, logging, timestamps, and file cleanup.
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eventyay.base.models.LoggedModel(*args, **kwargs)
Bases:
Model,LoggingMixin- class Meta
Bases:
object- abstract = False
- all_logentries()
Returns all log entries that are attached to this object.
- Returns:
A QuerySet of LogEntry objects
- all_logentries_link
- logs_content_type
- top_logentries()
- top_logentries_has_more()
- class eventyay.base.models.TimestampedModel(*args, **kwargs)
Bases:
Model- class Meta
Bases:
object- abstract = False
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Announcements & Notifications
- class eventyay.base.models.Announcement(id, event, text, show_until, state, timestamp)
Bases:
Model- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- property allowed_states
- 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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- get_next_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=True, **kwargs)
- get_previous_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=False, **kwargs)
- get_state_display(*, field=<django.db.models.fields.CharField: state>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property is_visible
- objects = <django.db.models.manager.Manager object>
- serialize_public()
- show_until
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- state
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- text
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- timestamp
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eventyay.base.models.NotificationSetting(*args, **kwargs)
Bases:
ModelStores that a user wants to get notifications of a certain type via a certain method for a certain event. If event is None, the notification shall be sent for all events the user has access to.
- Parameters:
user (User) – The user to nofify.
action_type (str) – The type of action to notify for.
event (Event) – The event to notify for.
method (str) – The method to notify with.
enabled (bool) – Indicates whether the specified notification is enabled. If no event is set, this must always be true. If no event is set, setting this to false is equivalent to deleting the object.
- CHANNELS = (('mail', 'E-mail'),)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- action_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- enabled
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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- get_method_display(*, field=<django.db.models.fields.CharField: method>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- method
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>
- user
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.parentis aForwardManyToOneDescriptorinstance.
- user_id
- class eventyay.base.models.QueuedMail(*args, **kwargs)
Bases:
PretalxModelEmails in pretalx are rarely sent directly, hence the name QueuedMail.
This mechanism allows organisers to make sure they send out the right content, and to include personal changes in emails.
- Parameters:
sent –
Noneif the mail has not been sent yet.to_users – All known users to whom this email is addressed.
to – A comma-separated list of email addresses to whom this email is addressed. Does not contain any email addresses known to belong to users.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- attachments
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- bcc
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- cc
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- copy_to_draft()
Copies an already sent email to a new object and adds it to the outbox.
- created
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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- locale
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- make_html()
- make_text()
- prefixed_subject
- reply_to
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- send(requestor=None, orga: bool = True)
Sends an email.
- Parameters:
requestor (
User) – The user issuing the command. Used for logging.orga – Was this email sent as by a privileged user?
- sent
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.
- submissions
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.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- template
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.parentis aForwardManyToOneDescriptorinstance.
- template_id
- text
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- to
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- to_users
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.toppingsandTopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eventyay.base.models.MailTemplate(*args, **kwargs)
Bases:
PretalxModelMailTemplates can be used to create.
QueuedMailobjects.The process does not come with variable substitution except for special cases, for now.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- bcc
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created
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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- get_role_display(*, field=<django.db.models.fields.CharField: role>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_auto_created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property log_parent
- log_prefix = 'eventyay.mail_template'
- mails
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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- reply_to
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- role
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.
- text
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- to_mail(user, event, locale: str = None, context: dict = None, context_kwargs: dict = None, skip_queue: bool = False, commit: bool = True, allow_empty_address: bool = False, submissions: list = None, attachments: list = False)
Creates a
QueuedMailobject from a MailTemplate.- Parameters:
user – Either a
Useror an email address as a string.submissions – A list of submissions to which this email belongs. This is handled as an addition to any submission object present in
context_kwargs.event – The event to which this email belongs. May be
None.locale – The locale will be set via the event and the recipient, but can be overridden with this parameter.
context – Context to be used when rendering the template. Merged with all context available via get_mail_context.
context_kwargs – Passed to get_mail_context to retrieve the correct context when rendering the template.
skip_queue – Send directly. If combined with commit=False, this will remove any logging and traces.
commit – Set
Falseto return an unsaved object.
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- valid_placeholders
- class eventyay.base.models.MailTemplateRoles(value)
Bases:
TextChoices- EXISTING_SPEAKER_INVITE = 'speaker.invite.existing'
- NEW_SCHEDULE = 'schedule.new'
- NEW_SPEAKER_INVITE = 'speaker.invite'
- NEW_SUBMISSION = 'submission.new'
- NEW_SUBMISSION_INTERNAL = 'submission.new.internal'
- QUESTION_REMINDER = 'question.reminder'
- SUBMISSION_ACCEPT = 'submission.state.accepted'
- SUBMISSION_REJECT = 'submission.state.rejected'
Access Control
- class eventyay.base.models.SubmitterAccessCode(id, created, updated, event, code, track, submission_type, valid_until, maximum_uses, redeemed)
Bases:
GenerateCode,PretalxModel- code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created
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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property is_valid
- property log_parent
- log_prefix = 'eventyay.access_code'
- maximum_uses
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- redeemed
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property redemptions_left
- send_invite(to, subject, text)
- submission_type
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.parentis aForwardManyToOneDescriptorinstance.
- submission_type_id
- submissions
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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
- track
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.parentis aForwardManyToOneDescriptorinstance.
- track_id
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- valid_until
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Feedback
- class eventyay.base.models.Feedback(*args, **kwargs)
Bases:
PretalxModelThe Feedback model allows for anonymous feedback by attendees to one or all speakers of a.
Submission.- Parameters:
speaker – If the
speakerattribute is not set, the feedback is assumed to be directed to all speakers.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- 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_scopes.manager.ScopedManager.<locals>.Manager object>
- rating
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- review
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- speaker
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.parentis aForwardManyToOneDescriptorinstance.
- speaker_id
- talk
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.parentis aForwardManyToOneDescriptorinstance.
- talk_id
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Availability
- class eventyay.base.models.Availability(*args, **kwargs)
Bases:
PretalxModelThe Availability class models when people or rooms are available for.
TalkSlotobjects.The power of this class is not within its rather simple data model, but with the operations available on it. An availability object can span multiple days, but due to our choice of input widget, it will usually only span a single day at most.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- all_day
Checks if the Availability spans one (or, technically: multiple) complete day.
- contains(other: Availability) bool
Tests if this availability starts before and ends after the other.
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- end
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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- 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)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- intersect_with(other: Availability) Availability
Return a new Availability which spans the range covered both by this one and the given one.
- classmethod intersection(*availabilitysets: list[Availability]) list[Availability]
Return the list of Availabilities which are covered by all of the given sets.
- merge_with(other: Availability) Availability
Return a new Availability which spans the range of this one and the given one.
- overlaps(other: Availability, strict: bool) bool
Test if two Availabilities overlap.
- Parameters:
strict – Only count a real overlap as overlap, not direct adjacency.
- person
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.parentis aForwardManyToOneDescriptorinstance.
- person_id
- room
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.parentis aForwardManyToOneDescriptorinstance.
- room_id
- serialize(full=True) dict
- start
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- classmethod union(availabilities: list[Availability]) list[Availability]
Return the minimal list of Availability objects which are covered by at least one given Availability.
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Files
- class eventyay.base.models.CachedFile(*args, **kwargs)
Bases:
ModelAn uploaded file, with an optional expiry date.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- expires
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- file
The descriptor for the file attribute on the model instance. Return a FieldFile when accessed so you can write code like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assign a file object on assignment so you can do:
>>> with open('/path/to/hello.world') as f: ... instance.file = File(f)
- filename
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- 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>
- session_key
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- web_download
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Logging & Audit
- class eventyay.base.models.LogEntry(*args, **kwargs)
Bases:
ModelRepresents a change or action that has been performed on another object in the database. This uses django.contrib.contenttypes to allow a relation to an arbitrary database object.
- Parameters:
datetime (datetime) – The timestamp of the logged action
user (User) – The user that performed the action
action_type (str) – The type of action that has been performed. This is used to look up the renderer used to describe the action in a human- readable way. This should be some namespaced value using dotted notation to avoid duplicates, e.g.
"eventyay.plugins.banktransfer.incoming_transfer".data (str) – Arbitrary data that can be used by the log action renderer
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- action_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- all = <django.db.models.manager.Manager object>
- api_token
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.parentis aForwardManyToOneDescriptorinstance.
- api_token_id
- classmethod bulk_postprocess(objects)
- content_object
Provide a generic many-to-one relation through the
content_typeandobject_idfields.This class also doubles as an accessor to the related object (similar to ForwardManyToOneDescriptor) by adding itself as a model attribute.
- content_type
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.parentis aForwardManyToOneDescriptorinstance.
- content_type_id
- data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- datetime
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- delete(using=None, keep_parents=False)
- device
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.parentis aForwardManyToOneDescriptorinstance.
- device_id
- display()
- display_object
- 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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- get_next_by_datetime(*, field=<django.db.models.fields.DateTimeField: datetime>, is_next=True, **kwargs)
- get_previous_by_datetime(*, field=<django.db.models.fields.DateTimeField: datetime>, 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.
- is_orga_action
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- json_data
- property notification_type
- oauth_application
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.parentis aForwardManyToOneDescriptorinstance.
- oauth_application_id
- object_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <eventyay.base.models.log.VisibleOnlyManager object>
- organizer
- parsed_data
- property person
- shredded
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property timestamp
- user
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.parentis aForwardManyToOneDescriptorinstance.
- user_id
- visible
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property webhook_type
- class eventyay.base.models.ActivityLog(*args, **kwargs)
Bases:
ModelThis model logs actions within an event.
It is not designed to provide a complete or reliable audit trail.
- Parameters:
is_orga_action – True, if the logged action was performed by a privileged user.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- action_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- content_object
Provide a generic many-to-one relation through the
content_typeandobject_idfields.This class also doubles as an accessor to the related object (similar to ForwardManyToOneDescriptor) by adding itself as a model attribute.
- content_type
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.parentis aForwardManyToOneDescriptorinstance.
- content_type_id
- data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- display
- display_object
Returns a link (formatted HTML) to the object in question.
- 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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- get_next_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=True, **kwargs)
- get_previous_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, 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.
- is_orga_action
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- json_data
- object_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_scopes.manager.ScopedManager.<locals>.Manager object>
- person
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.parentis aForwardManyToOneDescriptorinstance.
- person_id
- timestamp
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eventyay.base.models.AuditLog(id, event, timestamp, user, type, data)
Bases:
Model- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- data
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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- get_next_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=True, **kwargs)
- get_previous_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, 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>
- serialize_public()
- timestamp
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- user
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.parentis aForwardManyToOneDescriptorinstance.
- user_id
- class eventyay.base.models.SystemLog(id, timestamp, module, event, message, trace)
Bases:
Model- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- 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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- get_next_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, is_next=True, **kwargs)
- get_previous_by_timestamp(*, field=<django.db.models.fields.DateTimeField: timestamp>, 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.
- message
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- module
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>
- timestamp
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- trace
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Settings
- class eventyay.base.models.GlobalSettings
Bases:
GlobalSettingsBase- get_instance_identifier()
- property settings
- class eventyay.base.models.Event_SettingsStore(id, key, value, object)
Bases:
BaseHierarkeyStoreModel- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- key
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- object
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.parentis aForwardManyToOneDescriptorinstance.
- object_id
- objects = <django.db.models.manager.Manager object>
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eventyay.base.models.Organizer_SettingsStore(id, key, value, object)
Bases:
BaseHierarkeyStoreModel- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- key
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- object
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.parentis aForwardManyToOneDescriptorinstance.
- object_id
- objects = <django.db.models.manager.Manager object>
- value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Billing
- class eventyay.base.models.BillingInvoice(id, organizer, event, status, amount, currency, ticket_fee, final_ticket_fee, voucher_discount, voucher_price_mode, voucher_value, payment_method, paid_datetime, note, monthly_bill, created_at, created_by, updated_at, updated_by, last_reminder_datetime, next_reminder_datetime, reminder_schedule, reminder_enabled, stripe_payment_intent_id)
Bases:
LoggedModel- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- STATUS_CANCELED = 'c'
- STATUS_CHOICES = [('n', 'pending'), ('p', 'paid'), ('e', 'expired'), ('c', 'canceled')]
- STATUS_EXPIRED = 'e'
- STATUS_PAID = 'p'
- STATUS_PENDING = 'n'
- amount
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_at
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- created_by
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- currency
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.parentis aForwardManyToOneDescriptorinstance.
- event_id
- final_ticket_fee
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_next_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=True, **kwargs)
- get_next_by_monthly_bill(*, field=<django.db.models.fields.DateField: monthly_bill>, is_next=True, **kwargs)
- get_next_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=True, **kwargs)
- get_previous_by_created_at(*, field=<django.db.models.fields.DateTimeField: created_at>, is_next=False, **kwargs)
- get_previous_by_monthly_bill(*, field=<django.db.models.fields.DateField: monthly_bill>, is_next=False, **kwargs)
- get_previous_by_updated_at(*, field=<django.db.models.fields.DateTimeField: updated_at>, is_next=False, **kwargs)
- get_status_display(*, field=<django.db.models.fields.CharField: status>)
- get_voucher_price_mode_display(*, field=<django.db.models.fields.CharField: voucher_price_mode>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- last_reminder_datetime
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- monthly_bill
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- next_reminder_datetime
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- note
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- organizer
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.parentis aForwardManyToOneDescriptorinstance.
- organizer_id
- paid_datetime
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- payment_method
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reminder_enabled
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reminder_schedule
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stripe_payment_intent_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- ticket_fee
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_at
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- updated_by
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- voucher_discount
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- voucher_price_mode
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- voucher_value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- class eventyay.base.models.OrganizerBillingModel(*args, **kwargs)
Bases:
ModelBilling model - support billing information for organizer
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- address_line_1
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- address_line_2
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- city
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- company_or_organization_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- country
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- delete(*args, **kwargs)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- invoice_voucher
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.parentis aForwardManyToOneDescriptorinstance.
- invoice_voucher_id
- objects = <django.db.models.manager.Manager object>
- organizer
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.parentis aForwardManyToOneDescriptorinstance.
- organizer_id
- preferred_language
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- primary_contact_email
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- primary_contact_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- save(*args, **kwargs)
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.
- stripe_customer_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stripe_payment_method_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- stripe_setup_intent_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- tax_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- zip_code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.