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: sqlalchemy.Column[uuid.UUID][source]
name: sqlalchemy.Column[str][source]
title[source]
survey: sqlalchemy.orm.relationship[onegov.form.models.definition.SurveyDefinition][source]
enabled: sqlalchemy.Column[bool][source]
start: sqlalchemy.Column[datetime.date][source]
end: sqlalchemy.Column[datetime.date][source]
timezone: sqlalchemy.Column[str][source]
submissions: sqlalchemy.orm.relationship[list[onegov.form.models.submission.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]