winterthur.models.mission_report
Attributes
Classes
A general file (image, document, pdf, etc), referenced in the database. |
|
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded |
|
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded |
|
Many to many association between vehicles and reports. |
Module Contents
- winterthur.models.mission_report.MISSION_TYPES: tuple[MissionType, Ellipsis] = ('single', 'multi')[source]
- class winterthur.models.mission_report.MissionReportFile[source]
Bases:
onegov.file.File
A general file (image, document, pdf, etc), referenced in the database.
Thanks to the use of Depot files can be seemingly stored in the database (with transaction guarantees), without actually storing it in the database.
- class winterthur.models.mission_report.MissionReport[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.org.models.AccessExtension
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).
- used_vehicles: relationship[list[MissionReportVehicleUse]][source]
- class winterthur.models.mission_report.MissionReportVehicle[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.org.models.AccessExtension
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).
- uses: relationship[list[MissionReportVehicleUse]][source]
- class winterthur.models.mission_report.MissionReportVehicleUse[source]
Bases:
onegov.core.orm.Base
Many to many association between vehicles and reports.
- mission_report: relationship[MissionReport][source]
- vehicle: relationship[MissionReportVehicle][source]