AKOnline.forms module

class AKOnline.forms.VirtualRoomForm(*args, **kwargs)[source]

Bases: ModelForm

Form to create a virtual room

Should be used as part of a multi form (see RoomWithVirtualForm below)

Form fields:

__init__(*args, **kwargs)[source]
class AKOnline.forms.RoomWithVirtualForm(*args, **kwargs)[source]

Bases: MultiModelForm

Combined form to create rooms and optionally virtual rooms

Multi-Form that combines a RoomForm (from AKModel) and a VirtualRoomForm (see above).

The form will always create a room on valid input and may additionally create a virtual room if the url field of the virtual room form part is set.