Pages/start of tests for EventChecklists

This commit is contained in:
2020-09-14 16:26:02 +01:00
parent aa0184a5dc
commit 6426880708
6 changed files with 134 additions and 48 deletions

View File

@@ -728,6 +728,10 @@ class EventChecklist(models.Model, RevisionMixin):
def clean(self):
errdict = {}
if self.power_mic is None:
errdict["power_mic"] = ["You must select a Power MIC"]
if self.earthing is None or self.pat is None:
errdict['earthing'] = 'Fill out the electrical checks'