1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Close #2892: Extend admin UI to allow deleting old report results

This commit is contained in:
Jeremy Stretch
2019-12-31 16:11:47 -05:00
parent 0cf94cff16
commit 8c7b0cf670
3 changed files with 42 additions and 1 deletions

View File

@@ -915,6 +915,13 @@ class ReportResult(models.Model):
class Meta:
ordering = ['report']
def __str__(self):
return "{} {} at {}".format(
self.report,
"passed" if not self.failed else "failed",
self.created
)
#
# Change logging