Talk Component Models
These models are part of the unified eventyay Talk component, handling submissions, schedules, and speaker management.
Submissions
- class eventyay.base.models.Submission(*args, **kwargs)
Bases:
GenerateCode,PretalxModelSubmissions are, next to
Event, the central model in pretalx.A submission, which belongs to exactly one event, can have multiple speakers and a lot of other related data, such as a
SubmissionType, aTrack, multipleAnswerobjects, and so on.- Parameters:
code – The unique alphanumeric identifier used to refer to a submission.
state – The submission can be ‘submitted’, ‘accepted’, ‘confirmed’, ‘rejected’, ‘withdrawn’, or ‘canceled’. State changes should be done via the corresponding methods, like
accept(). TheSubmissionStatesclass comes with amethod_namesdictionary for method lookup.image – An image illustrating the talk or topic.
review_code – A token used in secret URLs giving read-access to the submission.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- abstract
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- accept(person=None, force: bool = False, orga: bool = True, from_pending: bool = False)
Sets the submission’s state to ‘accepted’.
Creates an acceptance
QueuedMailunless the submission was previously confirmed.
- access_code
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.
- access_code_id
- active_resources
- add_favourite(user)
- add_speaker(email, name=None, locale=None, user=None)
- all_objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- property anonymised
- anonymised_data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- answers
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.
- apply_pending_state(person=None, force: bool = False)
- assigned_reviewers
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.
- property availabilities
The intersection of all.
Availabilityobjects of all speakers of this submission.
- cancel(person=None, force: bool = False, orga: bool = True, from_pending: bool = False)
Sets the submission’s state to ‘canceled’.
- cfp_open
- code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- comments
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.
- confirm(person=None, force: bool = False, orga: bool = False, from_pending: bool = False)
Sets the submission’s state to ‘confirmed’.
- content_locale
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.
- current_slots
- delete(force: bool = False, **kwargs)
- deleted_objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- display_speaker_names
Helper method for a consistent speaker name display.
- display_title_with_speakers
- do_not_record
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- does_accept_feedback
- duration
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- editable
- 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
- export_duration
- favourites
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.
- feedback
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.
- get_content_for_mail()
- get_content_locale_display()
- get_duration() int
Returns this submission’s duration in minutes.
Falls back to the
SubmissionType’s default duration if none is set on the submission.
- get_email_locale(fallback=None)
- get_pending_state_display(*, field=<django.db.models.fields.CharField: pending_state>)
- get_state_display(*, field=<django.db.models.fields.CharField: state>)
- get_tag()
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- image
Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
- property image_url
- integer_uuid
- internal_notes
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- invitation_token
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property is_anonymised: bool
- property is_deleted
- is_featured
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- log_prefix = 'eventyay.submission'
- mails
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.
- make_submitted(person=None, force: bool = False, orga: bool = False, from_pending: bool = False)
Sets the submission’s state to ‘submitted’.
- mean_score
- median_score
- notes
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>
- pending_state
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property public_answers
- public_slots
All publicly visible
TalkSlotobjects of this submission in the current.Schedule.
- reject(person=None, force: bool = False, orga: bool = True, from_pending: bool = False)
Sets the submission’s state to ‘rejected’ and creates a rejection.
QueuedMail.
- remove(person=None, force: bool = False, orga: bool = True, from_pending: bool = False)
Sets the submission’s state to ‘deleted’.
- remove_favourite(user)
- remove_speaker(speaker, orga=True, user=None)
- resources
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.
- review_code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property reviewer_answers
- reviews
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.
- 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.
- score_categories
- send_initial_mails(person)
- send_invite(to, _from=None, subject=None, text=None)
- send_state_mail()
- slot
The first scheduled
TalkSlotof this submission in the current.Schedule.Note that this slot is not guaranteed to be visible.
- slot_count
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- slots
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.
- speaker_profiles
- speaker_roles
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.
- speakers
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.
- state
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- 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
- tags
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.
- title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- 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
- update_duration()
Apply the submission’s duration to its currently scheduled.
TalkSlot.Should be called whenever the duration changes.
- update_review_scores()
Apply the submission’s calculated review scores.
Should be called whenever the tracks of a submission change.
- update_talk_slots()
Makes sure the correct amount of.
TalkSlotobjects exists.After an update or state change, talk slots should either be all deleted, or all created, or the number of talk slots might need to be adjusted.
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property user_state
- withdraw(person=None, force: bool = False, orga: bool = False, from_pending: bool = False)
Sets the submission’s state to ‘withdrawn’.
- class eventyay.base.models.SubmissionStates
Bases:
Choices- ACCEPTED = 'accepted'
- CANCELED = 'canceled'
- CONFIRMED = 'confirmed'
- DELETED = 'deleted'
- DRAFT = 'draft'
- REJECTED = 'rejected'
- SUBMITTED = 'submitted'
- WITHDRAWN = 'withdrawn'
- accepted_states = ('accepted', 'confirmed')
- display_values = {'accepted': 'accepted', 'canceled': 'canceled', 'confirmed': 'confirmed', 'deleted': 'deleted', 'draft': 'draft', 'rejected': 'rejected', 'submitted': 'submitted', 'withdrawn': 'withdrawn'}
- static get_color(state)
- method_names = {'accepted': 'accept', 'canceled': 'cancel', 'confirmed': 'confirm', 'deleted': 'remove', 'rejected': 'reject', 'submitted': 'make_submitted', 'withdrawn': 'withdraw'}
- valid_choices = [('submitted', 'submitted'), ('accepted', 'accepted'), ('confirmed', 'confirmed'), ('rejected', 'rejected'), ('canceled', 'canceled'), ('withdrawn', 'withdrawn'), ('deleted', 'deleted'), ('draft', 'draft')]
- valid_next_states = {'accepted': ('confirmed', 'canceled', 'rejected', 'submitted', 'withdrawn'), 'canceled': ('accepted', 'confirmed'), 'confirmed': ('accepted', 'canceled'), 'deleted': (), 'draft': ('submitted',), 'rejected': ('accepted', 'submitted'), 'submitted': ('rejected', 'withdrawn', 'accepted'), 'withdrawn': 'submitted'}
- class eventyay.base.models.SubmissionType(*args, **kwargs)
Bases:
PretalxModelEach
Submissionhas one SubmissionType.SubmissionTypes are used to group submissions by default duration (which can be overridden on a per-submission basis), and to be able to offer different deadlines for some parts of the
Event.- 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.
- deadline
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- default_duration
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 log_parent
- log_prefix = 'eventyay.submission_type'
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- questions
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.
- requires_access_code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property slug: str
The slug makes tracks more readable in URLs.
It consists of the ID, followed by a slugified (and, in lookups, optional) form of the submission type name.
- 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.
- submitter_access_codes
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.
- update_duration()
Updates the duration of all.
TalkSlotobjects ofSubmissionobjects of this type.Runs only for submissions that do not override their default duration. Should be called whenever
durationchanges.
- 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.SubmissionFavourite(id, created, updated, user, submission)
Bases:
PretalxModel- 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>
- submission
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_id
- updated
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
Speakers
- class eventyay.base.models.SpeakerProfile(*args, **kwargs)
Bases:
PretalxModelAll
Eventrelated data concerning a.Useris stored here.- Parameters:
has_arrived – Can be set to track speaker arrival. Will be used in warnings about missing speakers.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- answers
A queryset of
Answerobjects.Includes all answers the user has given either for themselves or for their talks for this event.
- availabilities
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.
- avatar
- avatar_url
- biography
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- code
- 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
- has_arrived
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.
- log_prefix = 'eventyay.user.profile'
- property reviewer_answers
- submissions
All non-deleted.
Submissionobjects by this user on this event.
- talks
A queryset of.
Submissionobjects.Contains all visible talks by this user on this event.
- updated
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
Schedule & Slots
- class eventyay.base.models.Schedule(*args, **kwargs)
Bases:
PretalxModelThe Schedule model contains all scheduled.
TalkSlotobjects (visible or not) for a schedule release for anEvent.- Parameters:
published –
Noneif the schedule has not been published yet.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- breaks
- build_data(all_talks=False, filter_updated=None, all_rooms=False)
- changes
Returns a dictionary of changes when compared to the previous version.
The
actionfield is eithercreateorupdate. If it’s an update, thecountinteger, and thenew_talks,canceled_talksandmoved_talkslists are also present.
- comment
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
- freeze(name: str, user=None, notify_speakers: bool = True, comment: str = None)
Releases the current WIP schedule as a fixed schedule version.
- Parameters:
name – The new schedule name. May not be in use in this event, and cannot be ‘wip’ or ‘latest’.
user – The
Userinitiating the freeze.notify_speakers – Should notification emails for speakers with changed slots be generated?
comment – Public comment for the release
- Return type:
- generate_notifications(save=False)
A list of unsaved
QueuedMailobjects to be sent on schedule release.
- get_all_talk_warnings(ids=None, filter_updated=None)
- get_talk_warnings(talk, with_speakers=True, room_avails=None, speaker_avails=None, speaker_profiles=None) list
A list of warnings that apply to this slot.
Warnings are dictionaries with a
type(roomorspeaker, for now) and amessagefit for public display. This property only shows availability based warnings.
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_archived
- previous_schedule
Returns the schedule released before this one, if any.
- published
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- scheduled_talks
Returns all
TalkSlotobjects that have been scheduled and are visible in the schedule (that is, have been confirmed at the time of release).
- slots
Returns all.
Submissionobjects withTalkSlotobjects in this schedule.
- speakers_concerned
Returns a dictionary of speakers with their new and changed talks in this schedule.
Each speaker is assigned a dictionary with
createandupdatefields, each containing a list of submissions.
- talks
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.
- unfreeze(user=None)
Resets the current WIP schedule to an older schedule version.
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- url_version
- use_room_availabilities
- version
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- version_with_fallback
- warnings
A dictionary of warnings to be acknowledged before a release.
talk_warningscontains a list of talk-related warnings.unscheduledis the list of talks without a scheduled slot,unconfirmedis the list of submissions that will not be visible due to their unconfirmed status, andno_trackare submissions without a track in a conference that uses tracks.
- class eventyay.base.models.TalkSlot(*args, **kwargs)
Bases:
PretalxModelThe TalkSlot object is the scheduled version of a.
Submission.TalkSlots always belong to one submission and one
Schedule.- Parameters:
is_visible – This parameter is set on schedule release. Only confirmed talks will be visible.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- as_availability
‘Casts’ a slot as.
Availability, useful for availability arithmetic.
- build_ical(calendar, creation_time=None, netloc=None)
- copy_to_schedule(new_schedule, save=True)
Create a new slot for the given.
Schedulewith all other fields identical to this one.
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property duration: int
Returns the actual duration in minutes if the talk is scheduled, and the planned duration in minutes otherwise.
- end
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- event
- export_duration
- frab_slug
- full_ical()
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id_suffix
- is_same_slot(other_slot) bool
Checks if both slots have the same room and start time.
- is_visible
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- local_end
- local_start
- objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- pentabarf_export_duration
- real_end
Guaranteed to provide a useful end datetime if
startis set, even ifendis empty.
- 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
- schedule
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.
- schedule_id
- start
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- submission
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_id
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- uuid
A UUID5, calculated from the submission code and the instance identifier.
- class eventyay.base.models.Track(*args, **kwargs)
Bases:
OrderedModel,PretalxModelA track groups
Submissionobjects within anEvent, e.g. by topic.- Parameters:
color – The track colour, in the format #012345.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- color
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.
- description
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
- static get_order_queryset(event)
- id
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.track'
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- position
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- questions
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.
- requires_access_code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- reviewscorecategory_set
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.
- property slug: str
The slug makes tracks more readable in URLs.
It consists of the ID, followed by a slugified (and, in lookups, optional) form of the track name.
- 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.
- submitter_access_codes
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.
- team_set
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.
Call for Papers
- class eventyay.base.models.CfP(*args, **kwargs)
Bases:
PretalxModelEvery
Eventhas one Call for Papers/Participation/Proposals.- Parameters:
deadline – The regular deadline. Please note that submissions can be available for longer than this if different deadlines are configured on single submission types.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- copy_data_from(other_cfp, skip_attributes=None)
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- deadline
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- default_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.
- default_type_id
- event
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.placeis aForwardOneToOneDescriptorinstance.
- event_id
- fields
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- headline
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.
- is_open
Trueifmax_deadlineis not over yet, or if no deadline is set.
- max_deadline
Returns the latest date any submission is possible.
This includes the deadlines set on any submission type for this event.
- property request_abstract
Check if abstract field is requested.
- property request_additional_speaker
Check if additional_speaker field is requested.
- property request_availabilities
Check if availabilities field is requested.
- property request_avatar
Check if avatar field is requested.
- property request_avatar_license
Check if avatar_license field is requested.
- property request_avatar_source
Check if avatar_source field is requested.
- property request_biography
Check if biography field is requested.
- property request_content_locale
Check if content_locale field is requested.
- property request_description
Check if description field is requested.
- property request_do_not_record
Check if do_not_record field is requested.
- property request_duration
Check if duration field is requested.
- property request_image
Check if image field is requested.
- property request_notes
Check if notes field is requested.
- property request_title
Check if title field is requested.
- property request_track
Check if track field is requested.
- property require_abstract
Check if abstract field is required.
- property require_additional_speaker
Check if additional_speaker field is required.
- property require_availabilities
Check if availabilities field is required.
- property require_avatar
Check if avatar field is required.
- property require_avatar_license
Check if avatar_license field is required.
- property require_avatar_source
Check if avatar_source field is required.
- property require_biography
Check if biography field is required.
- property require_content_locale
Check if content_locale field is required.
- property require_description
Check if description field is required.
- property require_do_not_record
Check if do_not_record field is required.
- property require_duration
Check if duration field is required.
- property require_image
Check if image field is required.
- property require_notes
Check if notes field is required.
- property require_title
Check if title field is required.
- property require_track
Check if track field is required.
- settings
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.
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Questions
- class eventyay.base.models.TalkQuestion(*args, **kwargs)
Bases:
OrderedModel,PretalxModelTalkQuestions can be asked per.
Submission, per speaker, or of reviewers perReview.TalkQuestions can have many types, which offers a flexible framework to give organisers the opportunity to get all the information they need.
- Parameters:
variant – Can be any of ‘number’, ‘string’, ‘text’, ‘boolean’, ‘file’, ‘choices’, or ‘multiple_choice’. Defined in the
TalkQuestionVariantclass.target – Can be any of ‘submission’, ‘speaker’, or ‘reviewer’. Defined in the
TalkQuestionTargetclass.deadline – Datetime field. This field is required for ‘after deadline’ and ‘freeze after’ options of question_required field and optional for the other ones. For ‘after deadline’ it shows that the answer will be optional before the deadline and mandatory after that deadline. For ‘freeze after’ it shows that the answer will be allowed before the deadline and frozen after that deadline
question_required – Can be any of ‘none’, ‘require ‘, ‘after deadline’, or ‘freeze after’. Defined in the
TalkQuestionRequiredclass. ‘required’ answering this question will always be required. ‘optional’ means that it will never be mandatory. ‘after deadline’ the answer will be optional before the deadline and mandatory after the deadline.freeze_after – Can be a datetime field or null. For ‘freeze after’ the answer will be allowed before the deadline and frozen after the deadline.
position – Position in the question order in this event.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- active
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- all_objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- answers
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.
- contains_personal_data
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.
- deadline
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- default_answer
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
- freeze_after
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- static get_order_queryset(event)
- get_question_required_display(*, field=<django.db.models.fields.CharField: question_required>)
- get_target_display(*, field=<django.db.models.fields.CharField: target>)
- get_variant_display(*, field=<django.db.models.fields.CharField: variant>)
- help_text
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.
- is_public
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_visible_to_reviewers
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.question'
- max_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_datetime
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_length
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- max_number
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- min_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- min_datetime
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- min_length
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- min_number
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- missing_answers(filter_speakers: list = False, filter_talks: list = False) int
Returns how many answers are still missing or this question.
This method only supports submission questions and speaker questions. For missing reviews, please use the get_missing_reviews method.
- Parameters:
filter_speakers – Apply only to these speakers.
filter_talks – Apply only to these talks.
- objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- options
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.
- position
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- question
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- question_required
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- property read_only
- required
- submission_types
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.
- target
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- tracks
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.
- variant
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.TalkQuestionTarget
Bases:
Choices- REVIEWER = 'reviewer'
- SPEAKER = 'speaker'
- SUBMISSION = 'submission'
- valid_choices = [('submission', 'per proposal'), ('speaker', 'per speaker'), ('reviewer', 'for reviewers')]
- class eventyay.base.models.TalkQuestionVariant
Bases:
Choices- BOOLEAN = 'boolean'
- CHOICES = 'choices'
- DATE = 'date'
- DATETIME = 'datetime'
- FILE = 'file'
- MULTIPLE = 'multiple_choice'
- NUMBER = 'number'
- STRING = 'string'
- TEXT = 'text'
- URL = 'url'
- valid_choices = [('number', 'Number'), ('string', 'Text (one-line)'), ('text', 'Multi-line text'), ('url', 'URL'), ('date', 'Date'), ('datetime', 'Date and time'), ('boolean', 'Yes/No'), ('file', 'File upload'), ('choices', 'Radio button (Choose one option)'), ('multiple_choice', 'Checkbox (Choose one or several options)')]
- class eventyay.base.models.Answer(*args, **kwargs)
Bases:
PretalxModelAnswers are connected to a.
TalkQuestion, and, depending on type, aUser, aSubmission, or aReview.- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- answer
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- answer_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)
- property answer_string
- boolean_answer
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- event
- 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_answered
- log_action(*args, content_object=None, **kwargs)
Create a LogEntry (instead of ActivityLog), similar to LoggingMixin.
- property log_parent
- objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- options
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.
- 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
- question
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.
- question_id
- remove(person=None, force=False)
Deletes an answer.
- review
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.
- review_id
- submission
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_id
- 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.AnswerOption(*args, **kwargs)
Bases:
PretalxModelProvides the possible answers for.
TalkQuestionobjects of variant ‘choice’ or ‘multiple_choice’.- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- answer
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- answers
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.
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- event
- id
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.question.option'
- objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- position
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- question
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.
- question_id
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Reviews
- class eventyay.base.models.Review(*args, **kwargs)
Bases:
PretalxModelReviews model the opinion of reviewers of a.
Submission.They can, but don’t have to, include a score and a text.
- Parameters:
text – The review itself. May be empty.
score – This score is calculated from all the related
scoresand their weights. Do not set it directly, use theupdate_scoremethod instead.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- all_objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- answers
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.
- classmethod calculate_score(scores)
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- display_score
Helper method to get a display string of the review’s score.
- event
- id
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.submission.review'
- objects = <django_scopes.manager.ScopedManager.<locals>.Manager object>
- save(*args, update_score=True, **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.
- score
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- scores
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.
- submission
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_id
- text
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- update_score()
- updated
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.ReviewPhase(*args, **kwargs)
Bases:
OrderedModel,PretalxModelReviewPhases determine reviewer access rights during a (potentially open) time frame.
- Parameters:
is_active – Is this phase currently active? There can be only one active phase per event. Use the
activatemethod to activate a review phase, as it will take care of this limitation.position – Helper field to deal with relative positioning of review phases next to each other.
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- activate() None
Activates this review phase and deactivates all others in this event.
- can_change_submission_state
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- can_review
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- can_see_other_reviews
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- can_see_reviewer_names
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- can_see_speaker_names
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- can_tag_submissions
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.
- 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_can_see_other_reviews_display(*, field=<django.db.models.fields.CharField: can_see_other_reviews>)
- get_can_tag_submissions_display(*, field=<django.db.models.fields.CharField: can_tag_submissions>)
- static get_order_queryset(event)
- get_proposal_visibility_display(*, field=<django.db.models.fields.CharField: proposal_visibility>)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- is_active
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- position
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- proposal_visibility
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- speakers_can_change_submissions
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- start
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.
- class eventyay.base.models.ReviewScore(id, created, updated, category, value, label)
Bases:
PretalxModel- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- category
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.
- category_id
- created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- format(fmt)
- id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- label
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>
- reviews
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.
- 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.ReviewScoreCategory(id, created, updated, event, name, weight, required, active, is_independent)
Bases:
PretalxModel- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- active
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.
- delete(*args, **kwargs)
- 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.
- is_independent
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- limit_tracks
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.
- name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- classmethod recalculate_scores(event)
- required
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.
- scores
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.
- updated
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- weight
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.