mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Generate PDFs from Power Test Records (#594)
* Add new block to base_print.xml for additional styles from downstream templates * Fix page totals on exports by adding <namedString> element * Add new print template for power test records * Add a generated name property to power tests to allow for export * Add new routes for print export for power tests * Add print button to power test records view page * Address linting errors
This commit is contained in:
@@ -943,6 +943,10 @@ class PowerTestRecord(ReviewableModel, RevisionMixin):
|
||||
def activity_feed_string(self):
|
||||
return str(self.event)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return f"Power Test Record - {self.event}"
|
||||
|
||||
|
||||
class EventCheckIn(models.Model):
|
||||
event = models.ForeignKey('Event', related_name='crew', on_delete=models.CASCADE)
|
||||
|
||||
Reference in New Issue
Block a user