mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 08:52:15 +00:00
Add absolute URL to power tests
This commit is contained in:
@@ -924,6 +924,9 @@ class PowerTestRecord(ReviewableModel, RevisionMixin):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.pk} - {self.event}"
|
return f"{self.pk} - {self.event}"
|
||||||
|
|
||||||
|
def get_absolute_url(self):
|
||||||
|
return reverse('pt_detail', kwargs={'pk': self.pk})
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def activity_feed_string(self):
|
def activity_feed_string(self):
|
||||||
return str(self.event)
|
return str(self.event)
|
||||||
|
|||||||
Reference in New Issue
Block a user