Skip to content
Snippets Groups Projects
Commit 9df18c8c authored by Todd Dembrey's avatar Todd Dembrey Committed by Fredrik Jonsson
Browse files

Reference the correct object as part of the activity __str__

parent 240ce8f6
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ class Activity(models.Model): ...@@ -124,7 +124,7 @@ class Activity(models.Model):
return self.visibility not in [ALL] return self.visibility not in [ALL]
def __str__(self): def __str__(self):
return '{}: for "{}"'.format(self.get_type_display(), self.submission) return '{}: for "{}"'.format(self.get_type_display(), self.source)
@classmethod @classmethod
def visibility_for(cls, user): def visibility_for(cls, user):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment