form.models.survey_window

Attributes

daterange

Classes

SurveySubmissionWindow

Defines a submission window during which a form definition

Module Contents

form.models.survey_window.daterange[source]
class form.models.survey_window.SurveySubmissionWindow[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.TimestampMixin

Defines a submission window during which a form definition may be used to create submissions.

Submissions created thusly are attached to the currently active survey window.

submission windows may not overlap.

__tablename__ = 'submission_windows'[source]
id: Column[uuid.UUID][source]
name: Column[str][source]
title[source]
survey: relationship[SurveyDefinition][source]
enabled: Column[bool][source]
start: Column[date][source]
end: Column[date][source]
timezone: Column[str][source]
submissions: relationship[list[SurveySubmission]][source]
__table_args__[source]
property localized_start: datetime.datetime[source]
property localized_end: datetime.datetime[source]
property in_the_future: bool[source]
property in_the_past: bool[source]
property in_the_present: bool[source]
accepts_submissions() bool[source]