From 3e1e0079d8471ee4ab3d2313692ee8d3f4ddfdb9 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Thu, 3 Feb 2022 18:47:16 +0000 Subject: [PATCH] Fix traininglevelqualification display Closes #470 for the time being --- training/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/training/models.py b/training/models.py index 4ec59608..2533d012 100644 --- a/training/models.py +++ b/training/models.py @@ -296,6 +296,10 @@ class TrainingLevelQualification(models.Model, RevisionMixin): return f"{self.trainee} is qualified in the {self.level}" return f"{self.trainee} is qualified as a {self.level}" + @property + def activity_feed_string(self): + return str(self) + class Meta: unique_together = ["trainee", "level"] ordering = ['-confirmed_on']