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'