mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-19 14:32:16 +00:00
Refactor activity feed template logic
Yay for removing arbitrary if/else chains!
This commit is contained in:
@@ -609,5 +609,9 @@ class RiskAssessment(models.Model):
|
||||
|
||||
# Blimey that was a lot of options
|
||||
|
||||
@property
|
||||
def activity_feed_string(self):
|
||||
return str(self.event)
|
||||
|
||||
def __str__(self):
|
||||
return "%i: %s" % (self.pk, self.event)
|
||||
return "%i - %s" % (self.pk, self.event)
|
||||
|
||||
Reference in New Issue
Block a user