From: Guillaume Pellerin Date: Wed, 21 Sep 2016 17:18:58 +0000 (+0200) Subject: Fix project_status property X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=aafd68d7cfc1d66817cec765ac674de74fe8727f;p=mezzo.git Fix project_status property --- diff --git a/app/organization/projects/models.py b/app/organization/projects/models.py index 0ac9dcdc..15e100bd 100644 --- a/app/organization/projects/models.py +++ b/app/organization/projects/models.py @@ -37,7 +37,7 @@ class Project(Displayable, Period, RichText): return reverse("organization-project-detail", kwargs={"slug": self.slug}) @property - def status(self): + def project_status(self): if datetime.date.today() >= self.date_from and datetime.date.today() <= self.date_to: return _('in progress') elif datetime.date.today() < self.date_from and datetime.date.today() < self.date_to: