AKPreference.forms module

class AKPreference.forms.EventParticipantForm(*args, **kwargs)[source]

Bases: AvailabilitiesFormMixin, ModelForm

Form to add EventParticipants

Form fields:

__init__(*args, **kwargs)[source]
clean_availabilities()[source]

Automatically improve availabilities entered. If the user did not specify availabilities assume the full event duration is possible :return: cleaned availabilities (either user input or one availability for the full length of the event if user input was empty)