mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-27 18:32:16 +00:00
Address linting errors
This commit is contained in:
@@ -942,7 +942,7 @@ class PowerTestRecord(ReviewableModel, RevisionMixin):
|
|||||||
@property
|
@property
|
||||||
def activity_feed_string(self):
|
def activity_feed_string(self):
|
||||||
return str(self.event)
|
return str(self.event)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
return f"Power Test Record - {self.event}"
|
return f"Power Test Record - {self.event}"
|
||||||
|
|||||||
@@ -231,6 +231,7 @@ class RAPrint(PrintView):
|
|||||||
context['filename'] = f"EventSpecificRiskAssessment_for_{context['object'].event.display_id}.pdf"
|
context['filename'] = f"EventSpecificRiskAssessment_for_{context['object'].event.display_id}.pdf"
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class PowerPrint(PrintView):
|
class PowerPrint(PrintView):
|
||||||
model = models.PowerTestRecord
|
model = models.PowerTestRecord
|
||||||
template_name = 'hs/power_print.xml'
|
template_name = 'hs/power_print.xml'
|
||||||
@@ -240,6 +241,7 @@ class PowerPrint(PrintView):
|
|||||||
context['filename'] = f"PowerTestRecord_for_{context['object'].event.display_id}.pdf"
|
context['filename'] = f"PowerTestRecord_for_{context['object'].event.display_id}.pdf"
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
class EventCheckIn(generic.CreateView, ModalURLMixin):
|
class EventCheckIn(generic.CreateView, ModalURLMixin):
|
||||||
model = models.EventCheckIn
|
model = models.EventCheckIn
|
||||||
template_name = 'hs/eventcheckin_form.html'
|
template_name = 'hs/eventcheckin_form.html'
|
||||||
|
|||||||
Reference in New Issue
Block a user