From 6e743c0673a9fd5f82f4dd408a3a753ebcd0764c Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sun, 13 Oct 2024 16:25:01 +0100 Subject: [PATCH] Address linting errors --- RIGS/models.py | 2 +- RIGS/views/hs.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RIGS/models.py b/RIGS/models.py index 7e3ec306..415bcd5d 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -942,7 +942,7 @@ class PowerTestRecord(ReviewableModel, RevisionMixin): @property def activity_feed_string(self): return str(self.event) - + @property def name(self): return f"Power Test Record - {self.event}" diff --git a/RIGS/views/hs.py b/RIGS/views/hs.py index cf67a826..931bc708 100644 --- a/RIGS/views/hs.py +++ b/RIGS/views/hs.py @@ -231,6 +231,7 @@ class RAPrint(PrintView): context['filename'] = f"EventSpecificRiskAssessment_for_{context['object'].event.display_id}.pdf" return context + class PowerPrint(PrintView): model = models.PowerTestRecord template_name = 'hs/power_print.xml' @@ -240,6 +241,7 @@ class PowerPrint(PrintView): context['filename'] = f"PowerTestRecord_for_{context['object'].event.display_id}.pdf" return context + class EventCheckIn(generic.CreateView, ModalURLMixin): model = models.EventCheckIn template_name = 'hs/eventcheckin_form.html'