Skip to content
Snippets Groups Projects
Commit d2ab88ee authored by Christine HO's avatar Christine HO
Browse files

fix publication status explanation

parent 03bf6999
No related branches found
No related tags found
No related merge requests found
...@@ -427,7 +427,7 @@ class NewsboxExpiredBase(six.with_metaclass(NewsboxModelBase, models.Model)): ...@@ -427,7 +427,7 @@ class NewsboxExpiredBase(six.with_metaclass(NewsboxModelBase, models.Model)):
This property must be overided if you have more complicated publication status management This property must be overided if you have more complicated publication status management
than just the status field. than just the status field.
""" """
if not self.is_draft and not self.is_archived and self.is_expired: if not self.is_draft and not self.is_archived and self.is_expired(self):
explanation = _('This content "%s" is not published because ' explanation = _('This content "%s" is not published because '
'its publication end date is in the past') 'its publication end date is in the past')
return explanation % self._meta.verbose_name return explanation % self._meta.verbose_name
......
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