AKModel.availability.forms module

class AKModel.availability.forms.AvailabilitiesFormMixin(*args, **kwargs)[source]

Bases: Form

Mixin for forms to add availabilities functionality to it Will handle the rendering and population of an availabilities field

Form fields:

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

Turn raw availabilities into real availability objects :return:

save(*args, **kwargs)[source]

Override the saving method of the (model) form