django_program.pretalx.views¶
Views for the pretalx integration app.
Provides read-only schedule, talk, and speaker views scoped to a conference
via the conference_slug URL kwarg. All views resolve the conference from
the URL and return a 404 if the slug does not match.
Classes
Mixin that resolves the conference from the |
|
JSON endpoint for schedule data. |
|
Full schedule view grouped by day. |
|
Detail view for a single speaker. |
|
List view of all speakers for a conference, ordered by name. |
|
Detail view for a single talk. |
- class django_program.pretalx.views.ConferenceMixin[source]¶
Bases:
objectMixin that resolves the conference from the
conference_slugURL kwarg.Stores the conference on
self.conferenceand adds it to the template context. Returns a 404 if no conference matches the slug.- conference: Conference¶
- get_conference()[source]¶
Look up the conference by slug from the URL.
- Return type:
- Returns:
The matched conference instance.
- Raises:
Http404 – If no conference matches the slug.
- class django_program.pretalx.views.ScheduleView[source]¶
Bases:
ConferenceMixin,FeatureRequiredMixin,TemplateViewFull schedule view grouped by day.
Renders the conference schedule with slots organized by date. Each day is a
(date, list[ScheduleSlot])tuple ordered by start time.- template_name = 'django_program/pretalx/schedule.html'¶
- class django_program.pretalx.views.ScheduleJSONView[source]¶
Bases:
ConferenceMixin,FeatureRequiredMixin,ViewJSON endpoint for schedule data.
Returns a JSON array of schedule slots suitable for embedding in JavaScript schedule widgets. Each slot includes title, room, start/end times, slot type, and the linked talk code when available.
- class django_program.pretalx.views.TalkDetailView[source]¶
Bases:
ConferenceMixin,FeatureRequiredMixin,DetailViewDetail view for a single talk.
Looks up the talk by its Pretalx code within the conference scope. Prefetches the speakers relation for display.
- template_name = 'django_program/pretalx/talk_detail.html'¶
- context_object_name = 'talk'¶
- class django_program.pretalx.views.SpeakerListView[source]¶
Bases:
ConferenceMixin,FeatureRequiredMixin,ListViewList view of all speakers for a conference, ordered by name.
- template_name = 'django_program/pretalx/speaker_list.html'¶
- context_object_name = 'speakers'¶
- class django_program.pretalx.views.SpeakerDetailView[source]¶
Bases:
ConferenceMixin,FeatureRequiredMixin,DetailViewDetail view for a single speaker.
Looks up the speaker by their Pretalx code within the conference scope. Prefetches talks for display.
- template_name = 'django_program/pretalx/speaker_detail.html'¶
- context_object_name = 'speaker'¶