org.models.form
Classes
Defines a form stored in the database. |
|
Defines a form stored in the database. |
Functions
|
CustomFormDefinition's are normally linked to a ticket. |
Module Contents
- class org.models.form.BuiltinFormDefinition[source]
Bases:
onegov.form.models.FormDefinition
,onegov.org.models.extensions.AccessExtension
,onegov.org.models.extensions.ContactExtension
,onegov.org.models.extensions.PersonLinkExtension
,onegov.org.models.extensions.CoordinatesExtension
,onegov.search.SearchableContent
,onegov.org.models.extensions.HoneyPotExtension
,onegov.org.models.extensions.GeneralFileLinkExtension
Defines a form stored in the database.
- class org.models.form.CustomFormDefinition[source]
Bases:
onegov.form.models.FormDefinition
,onegov.org.models.extensions.AccessExtension
,onegov.org.models.extensions.ContactExtension
,onegov.org.models.extensions.PersonLinkExtension
,onegov.org.models.extensions.CoordinatesExtension
,onegov.search.SearchableContent
,onegov.org.models.extensions.HoneyPotExtension
,onegov.org.models.extensions.GeneralFileLinkExtension
Defines a form stored in the database.
- org.models.form.submission_deletable(submission: onegov.form.models.FormSubmission, session: sqlalchemy.orm.Session, payment_blocks: bool = True) Ticket | bool [source]
CustomFormDefinition’s are normally linked to a ticket.
Submissions without registration window do not require a decision. The ticket state decides, whether the form definition can be deleted to provide some safeguard.
With registration window, we can check if the submission is decided and can close the ticket even if it is still pending.