mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-25 01:12:16 +00:00
Pages/start of tests for EventChecklists
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user