SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit c5ffe39e authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Clarify issue display if in progress

parent f553a59c
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,10 @@ class Issue(models.Model): ...@@ -125,7 +125,10 @@ class Issue(models.Model):
path = models.CharField(max_length=200) path = models.CharField(max_length=200)
def __str__(self): 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): def period (self):
text = 'up to {{ until_month }} {{ year }}' text = 'up to {{ until_month }} {{ year }}'
......
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