From 9df18c8cf47884ff9c4f477dc9eda014c05ccf87 Mon Sep 17 00:00:00 2001
From: Todd Dembrey <todd.dembrey@torchbox.com>
Date: Thu, 7 Nov 2019 11:26:18 +0000
Subject: [PATCH] Reference the correct object as part of the activity __str__

---
 hypha/apply/activity/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hypha/apply/activity/models.py b/hypha/apply/activity/models.py
index e8908e38d..cf4037813 100644
--- a/hypha/apply/activity/models.py
+++ b/hypha/apply/activity/models.py
@@ -124,7 +124,7 @@ class Activity(models.Model):
         return self.visibility not in [ALL]
 
     def __str__(self):
-        return '{}: for "{}"'.format(self.get_type_display(), self.submission)
+        return '{}: for "{}"'.format(self.get_type_display(), self.source)
 
     @classmethod
     def visibility_for(cls, user):
-- 
GitLab