AKPreference.views module

AKPreference.views.uuid_key(event)[source]

Determine the session key for the participant uuid for the given event :param event: event to determine the session key for :type event: Event :return: session key for the participant uuid for the given event :rtype: str

class AKPreference.views.PreferencePollCreateView(**kwargs)[source]

Bases: EventSlugMixin, SuccessMessageMixin, FormView

View: Show a form to register the AK preference of a participant.

The form creates the EventParticipant instance as well as the AKPreferences for each AK of the event.

For the creation of the event participant, a EventParticipantForm is used. For the preferences, a ModelFormset is created.

class AKPreference.views.EventSlugRedirectWhenInactiveMixin[source]

Bases: EventSlugMixin

Mixin to redirect to the dashboard when the event is not active

class AKPreference.views.PreferencePollStartView(**kwargs)[source]

Bases: EventSlugRedirectWhenInactiveMixin, CreateView

View: Start the preference poll for the event by showing the preference poll create form

This view is used to start the preference poll for the event by showing the preference poll create form.

model

alias of EventParticipant

form_class

alias of EventParticipantForm

class AKPreference.views.CheckSessionForParticipantMixin[source]

Bases: object

Mixin to check whether the session contains a valid participant uuid for the event and redirect to the start page if not

get(request, *args, **kwargs)[source]

Override get method of view

get_success_url()[source]

Override get_success_url of view

class AKPreference.views.PreferencePollOverview(**kwargs)[source]

Bases: EventSlugRedirectWhenInactiveMixin, CheckSessionForParticipantMixin, TemplateView

View: Show an overview of the preference poll for the event

This view is used to show an overview of the preference poll for the event, including the number of participants and preferences registered so far.

class AKPreference.views.ParticipantUpdateView(**kwargs)[source]

Bases: EventSlugRedirectWhenInactiveMixin, CheckSessionForParticipantMixin, UpdateView

View: Update the participant information for the preference poll

model

alias of EventParticipant

form_class

alias of EventParticipantForm

class AKPreference.views.DeleteInformationAndPreferencesView(**kwargs)[source]

Bases: EventSlugRedirectWhenInactiveMixin, CheckSessionForParticipantMixin, DeleteView

View: Delete the participant information and preferences for the preference poll

model

alias of EventParticipant

class AKPreference.views.EnterPreferencesView(**kwargs)[source]

Bases: EventSlugRedirectWhenInactiveMixin, CheckSessionForParticipantMixin, FormView

View to enter and update preferences for a given category

model

alias of EventParticipant

get_object(queryset=Ellipsis)[source]

Override

class AKPreference.views.PreferenceOverviewWidget[source]

Bases: TemplateStatusWidget

Status page widget: Preferences

class AKPreference.views.AnonymizeParticipantsView(**kwargs)[source]

Bases: IntermediateAdminActionView

View: Confirmation page to anonymize all given participants by removing their name and institution

Confirmation functionality provided by AKModel.metaviews.admin.IntermediateAdminView

model

alias of EventParticipant

class AKPreference.views.ParticipantAdminView(**kwargs)[source]

Bases: AdminViewMixin, DetailView

View: Get information about a participant (preferences and availabilities)

model

alias of EventParticipant