From c5ffe39ebfe7384bd89ab797418f36589f3701b4 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Sat, 17 Sep 2016 09:12:49 +0200 Subject: [PATCH] Clarify issue display if in progress --- journals/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/journals/models.py b/journals/models.py index 0456e7423..40e8244ac 100644 --- a/journals/models.py +++ b/journals/models.py @@ -125,7 +125,10 @@ class Issue(models.Model): path = models.CharField(max_length=200) def __str__(self): - return str(self.in_volume) + ' issue ' + str(self.number) + text = str(self.in_volume) + ' issue ' + str(self.number) + if self.until_date >= timezone.now().date(): + text += ' (in progress)' + return text def period (self): text = 'up to {{ until_month }} {{ year }}' -- GitLab