]> git.parisson.com Git - mezzo.git/commitdiff
Fix project_status property
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 21 Sep 2016 17:18:58 +0000 (19:18 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 21 Sep 2016 17:18:58 +0000 (19:18 +0200)
app/organization/projects/models.py

index 0ac9dcdcf5b7fddf2b2e2119896dab52e1b47ff3..15e100bd71aed17897ab9ad1a256fbeb039f0fd3 100644 (file)
@@ -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: