form.models.registration_window
Attributes
Classes
Defines a registration window during which a form definition |
Module Contents
- class form.models.registration_window.FormRegistrationWindow[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.TimestampMixin
Defines a registration window during which a form definition may be used to create submissions.
Submissions created thusly are attached to the currently active registration window.
Registration windows may not overlap.
- form: relationship[FormDefinition][source]
- submissions: relationship[list[FormSubmission]][source]
- property next_submission: onegov.form.models.submission.FormSubmission | None[source]
Returns the submission next in line. In other words, the next submission in order of first come, first serve.
- property requested_spots: int[source]
Returns the number of requested spots.
When the claim has not been made yet, spots are counted as requested. When the claim has been partially made, the difference is counted as requested. If the claim has been fully made, the result is 0. If the claim has been relinquished, the result is 0.