From f03dce6a5e22c13884c3017e78e4a302c43259aa Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 14 May 2021 11:46:10 +0300 Subject: Fix event icons --- servo/models/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servo/models/common.py b/servo/models/common.py index faad673..69feea2 100644 --- a/servo/models/common.py +++ b/servo/models/common.py @@ -147,7 +147,7 @@ class Event(models.Model): return Status.objects.get(title=self.description) def get_icon(self): - return "events/%s-%s" % (self.content_type, self.action) + return "events/%s-%s" % (self.content_type.name, self.action) def get_link(self): return self.content_object.get_absolute_url() -- cgit v1.2.3