mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 21:42:14 +00:00
Initial shenanigans on storing my overly fancy EC form
This commit is contained in:
@@ -642,13 +642,13 @@ class RiskAssessment(models.Model, RevisionMixin):
|
||||
|
||||
@reversion.register
|
||||
class EventChecklist(models.Model, RevisionMixin):
|
||||
|
||||
event = models.OneToOneField('Event', on_delete=models.CASCADE)
|
||||
|
||||
# General
|
||||
power_mic = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='checklist', blank=True, null=True,
|
||||
verbose_name="Power MIC", on_delete=models.CASCADE, help_text="Who is the Power MIC?")
|
||||
# TODO Tabular format
|
||||
vehicles = models.TextField(help_text="List vehicles and their drivers")
|
||||
vehicles = models.JSONField(help_text="List vehicles and their drivers", default=dict, null=False)
|
||||
|
||||
# Safety Checks
|
||||
safe_parking = models.BooleanField(help_text="Vehicles parked safely?<br><small>(does not obstruct venue access)</small>")
|
||||
@@ -668,6 +668,9 @@ class EventChecklist(models.Model, RevisionMixin):
|
||||
earthing = models.BooleanField(help_text="Equipment appropriately earthed?<br><small>(truss, stage, etc)</small>")
|
||||
pat = models.BooleanField(help_text="All equipment in PAT period?")
|
||||
|
||||
medium_event = models.BooleanField()
|
||||
# Medium Electrical Checks
|
||||
|
||||
@property
|
||||
def activity_feed_string(self):
|
||||
return str(self.event)
|
||||
|
||||
Reference in New Issue
Block a user