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,FormViewView: 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:
EventSlugMixinMixin to redirect to the dashboard when the event is not active
- class AKPreference.views.PreferencePollStartView(**kwargs)[source]
Bases:
EventSlugRedirectWhenInactiveMixin,CreateViewView: 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:
objectMixin to check whether the session contains a valid participant uuid for the event and redirect to the start page if not
- class AKPreference.views.PreferencePollOverview(**kwargs)[source]
Bases:
EventSlugRedirectWhenInactiveMixin,CheckSessionForParticipantMixin,TemplateViewView: 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,UpdateViewView: 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,DeleteViewView: Delete the participant information and preferences for the preference poll
- model
alias of
EventParticipant
- class AKPreference.views.EnterPreferencesView(**kwargs)[source]
Bases:
EventSlugRedirectWhenInactiveMixin,CheckSessionForParticipantMixin,FormViewView to enter and update preferences for a given category
- model
alias of
EventParticipant
- class AKPreference.views.PreferenceOverviewWidget[source]
Bases:
TemplateStatusWidgetStatus page widget: Preferences
- class AKPreference.views.AnonymizeParticipantsView(**kwargs)[source]
Bases:
IntermediateAdminActionViewView: 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,DetailViewView: Get information about a participant (preferences and availabilities)
- model
alias of
EventParticipant