form.models.definition
Classes
Defines a form stored in the database. |
|
Defines a survey stored in the database. |
Module Contents
- class form.models.definition.FormDefinition[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.core.orm.mixins.TimestampMixin
,onegov.form.extensions.Extendable
,onegov.file.MultiAssociatedFiles
Defines a form stored in the database.
- submissions: relationship[list[FormSubmission]][source]
- registration_windows: relationship[list[FormRegistrationWindow]][source]
- current_registration_window: relationship[FormRegistrationWindow | None][source]
- class form.models.definition.SurveyDefinition[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.core.orm.mixins.TimestampMixin
,onegov.form.extensions.Extendable
Defines a survey stored in the database.
- submissions: relationship[list[SurveySubmission]][source]
- submission_windows: relationship[list[SurveySubmissionWindow]][source]
- current_submission_window: relationship[SurveySubmissionWindow | None][source]
- property form_class: type[onegov.form.Form][source]
Parses the survey definition and returns a form class.