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: sqlalchemy.orm.relationship[list[onegov.form.models.submission.FormSubmission]][source]
- registration_windows: sqlalchemy.orm.relationship[list[onegov.form.models.registration_window.FormRegistrationWindow]][source]
- current_registration_window: sqlalchemy.orm.relationship[onegov.form.models.registration_window.FormRegistrationWindow | None][source]
- property form_class: type[onegov.form.Form][source]
Parses the form definition and returns a form class.
- 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: sqlalchemy.orm.relationship[list[onegov.form.models.submission.SurveySubmission]][source]
- submission_windows: sqlalchemy.orm.relationship[list[onegov.form.models.survey_window.SurveySubmissionWindow]][source]
- current_submission_window: sqlalchemy.orm.relationship[onegov.form.models.survey_window.SurveySubmissionWindow | None][source]
- property form_class: type[onegov.form.Form][source]
Parses the survey definition and returns a form class.