Add ability to edit past training records

This commit is contained in:
2022-01-02 15:39:10 +00:00
parent 19e6585e26
commit 2767777d0e
6 changed files with 39 additions and 7 deletions

View File

@@ -93,7 +93,7 @@ class TrainingItemQualification(models.Model):
# TODO Maximum depth - some things stop at Complete and you can't be passed out in them
def __str__(self):
return "{} in {} on {}".format(self.depth, self.item, self.date)
return "{} in {} on {}".format(self.get_depth_display(), self.item, self.date.strftime("%b %d %Y"))
@property
def activity_feed_string(self):